InputManager now checks that the window has focus for input to be valid