keyboard events

Events such as keydown and keyup fired when the user presses and releases keys.

In more detail

keypress is deprecated; use keydown and check event.key, such as 'Tab' or 'Escape'. A focus trap listens for Tab on keydown.

Related terms

Taught in

References