The key belongs to the element with the focus: any key typed in a text field (isTextTarget), Space or Enter
on a button, a checkbox, a radio button or another input (they press it), and the arrow keys, Home, End, PageUp and
PageDown in a widget that moves with them (a select, a range input, a tree, a list box, a menu, tabs, a toolbar…).
Keyboard shortcuts leave such a key to the element; other keys (Delete, a letter) on a focused checkbox still run
the shortcuts.
The key belongs to the element with the focus: any key typed in a text field (isTextTarget), Space or Enter on a button, a checkbox, a radio button or another input (they press it), and the arrow keys, Home, End, PageUp and PageDown in a widget that moves with them (a select, a range input, a tree, a list box, a menu, tabs, a toolbar…). Keyboard shortcuts leave such a key to the element; other keys (Delete, a letter) on a focused checkbox still run the shortcuts.