diff --git a/UI/Input/Keyboard/KeyboardManager.js b/UI/Input/Keyboard/KeyboardManager.js index ecfe022..26a8c0a 100644 --- a/UI/Input/Keyboard/KeyboardManager.js +++ b/UI/Input/Keyboard/KeyboardManager.js @@ -87,6 +87,7 @@ const actions = this.elements[element], length = actions.length, keyLength = this.down.length; + let match = false; for (let i = 0; i < length; i++) { @@ -95,9 +96,9 @@ match = false; break; - } else { - match = true; - } + } + + match = true; } if (match) {