Changed the player move function.

Player move function now accepts callback functions for keydown and
keyup events.