Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isPressed(key) { return hotkeys.isPressed(key); } }
A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.