modify InputManager class