managed keyboard input to prevent a held key sending many release events.