Screen readers and other assistive technologies use keyboard characters to trigger certain actions. And as we know, all content needs to be available using the keyboard.
It's important that when creating a web page or application if you're going to override the functionality of basic keys, you need to:
- Provide a way to turn off the shortcuts.
- Provide a way to re-map the shortcuts to other key combinations.
- Only activate the keyboard shortcut when the item has focus.
Relates to: WCAG 2.1 - Keyboard Accessible (Level A)