The user command is received by the server and then converted into a move. This is also run clientside when in multiplayer, for prediction to work.