Added InputHandler and queues to InputManager.