Bugfixes and better input handling

Fixed a couple of bugs with the render pane in the window.
Changed the way input is handled to be more precise.
Introduced bug where when GetMovement() is ran on KeyInput,
 the mouseMoved state is destroyed. Therefore GetMovement can
 only be run once per frame. A better way of handling frames
 in KeyInput is needed.