Sajari UI

useKeyPress

useKeyPress is a custom hook to listen for keyboard input.

Return value

The useKeyPress hook returns a boolean, true if the key being watched is pressed.

Import

Usage

Editable Example

+

s

are not pressed