update InputManager class