added relative mouse motion to main game loop; new keycode for ESC key