Fixed some bugs. Created simple event system. Implemented the event system.

Fixed some bugs concerning timing. Created a simple event system to
handle game events, and then switched over the movement and rotation to
use the events rather than check the keys pressed.