Changed the way keypresses affect player's movement.