useKeyPress
useKeyPress
listen the keyboard keydown events base on the key name that your have been defined.
Demo
Please click the Arrow Down key
Not Clicked Yet
Usage
import {useKeyPress} from "@reactusehooks/core";
useKeyPress("ArrowDown", () => {
console.log("ArrowDown is pressed");
});