Made InputManager a class.