Fix bug which prevented InputManager from handling keyup events.