Skip to content
zenui/react-hooks

useKeyPress

Return true while a specific key is held down. Use it for keyboard shortcuts, game controls and modifier keys such as Shift.

Level
Basic
Since
v1.0.0
import {useKeyPress} from '@zenuilabs/react-hooks';
Loading demo_

More in Events & DOM