This is the code in my main.lua.
-- Called when a key event has been received. local function onKeyEvent( event ) print(555) return false end -- Add the key event listener. Runtime:addEventListener( "key", onKeyEvent ) print(123)
The console output shows “123”, but no matter what buttons I press in the windows simulator, it never shows “555”.
Why does this event never fire?