Click a binding, then press a key or mouse button. Esc cancels. The mouse always controls the camera and aiming.
The game is running: changes apply the next time the page is reloaded.