MDK Logo
UI Kitreact-adapterHooks

useKeyDown

Tracks whether a specific keyboard key is currently held down.

Tracks whether a specific keyboard key is currently held down.

import { useKeyDown } from "@tetherto/mdk-react-adapter";

Signature

(keyName: string) => boolean
Package@tetherto/mdk-react-adapter
Requires providerNo