Added InputManager and brought all key events into this class