Hotkeys
A robust Javascript library for capturing keyboard input
... and dispatching keyboard shortcuts. Detailed use method please see its documentation react-hotkeys. React hook for using keyboard shortcuts in components. Make sure that you have at least version 16.8 of react and react-dom installed, or otherwise hooks won't work for you. The following special keys can be used for shortcuts: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, page up, pagedown, del, delete and f1 through f19.