# `useKeyPress` React UI sensor hook that detects when the user is pressing a specific key on their keyboard. ## Usage ```jsx import { useKeyPress } from "react-use"; const Demo = () => { const hasPressedQ = useKeyPress("q"); const hasPressedW = useKeyPress("w"); const hasPressedE = useKeyPress("e"); const hasPressedR = useKeyPress("r"); const hasPressedT = useKeyPress("t"); const hasPressedY = useKeyPress("y"); return (
Q W E R T Y