From 73b4046a07364e9724de06dfba09983a0dfc898e Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Thu, 11 Aug 2022 16:28:50 +0200 Subject: [PATCH] fix direction right --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }