diff --git a/src/library_sdl.js b/src/library_sdl.js index e9cbe60ef97f8..9ab538381b403 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -553,7 +553,7 @@ var LibrarySDL = { receiveEvent(event) { function unpressAllPressedKeys() { // Un-press all pressed keys: TODO - for (var keyCode of SDL.keyboardMap) { + for (var keyCode of Object.values(SDL.keyboardMap)) { SDL.events.push({ type: 'keyup', keyCode,