Installation
Usage
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| key* | string|string[] | required | Key or keys to listen for. |
| handler* | (e: KeyboardEvent) => void | required | Called when the key is pressed. |
| enabled | boolean | true | Disable the listener without removing the hook. |