Type in setPlayerMovement function

Type in setPlayerMovement function. This function sets player velocity
in order to perform the movement. It checks out controlMode variable to
see if we are using different inputs: acceleration values, keys,
gestures and so on.

Contact info: joaquin@isla.io