Add InputManager class.