Interactive Input (cont’d)

Update motion variables based on the user’s input