import { matchKeys } from "typed-keys";
// returns true if the keyboard input event is the key R
matchKeys(e, "R");
// check for multiple key combinations
matchKeys(e, ["Ctrl+P", "Shift+Alt+K"]);
npm install typed-keys
or
yarn add typed-keys
<script src="https://cdn.jsdelivr.net/gh/MarkintoshZ/Scribbled@latest/dist/scribbled.min.js">