edited InputManager to work better with game