diff --git a/app.js b/app.js index a6b4574..396433e 100644 --- a/app.js +++ b/app.js @@ -52,7 +52,8 @@ async function run() { if (button) { if (keyCooldown > 0) return; - if (KEYMAP[button]) { + if (KEYMAP[button] !== undefined) { + console.log() currentKey = button; keyCooldown = 10; }