Changed key monitoring event and fixed player movement.
Keyboard events are now monitored after the timer, which should dampen the sporadic issues from previous commits. This also seems to have fixed the bug where the player's movement becomes locked up.