When I press Tab, the control is blocked

I have a problem - when exporting the game to an exe file to run it directly and not through the engine - during the game, when I press Tab, the control is blocked but the buttons remain activated - for example, if I go forward and press tab, the character will go on even if the forward button is no longer pressed - this is a very strange a problem that I don’t understand how to solve, because when I run the same game in the engine itself, there is no such problem at all. The main problem is that in my game, the tab button opens an important menu.

just checked other project and TAB blocking controls of keyboard there too (but mouse is working and i can drag and drop objects). apparently this is some kind of built-in function - how can I disable it?

1 Like

The problem isn’t the tab key but a major bug in Gdevelop.

When a key is pressed and you minimize or remove focus from the Browser Tab / Window, the key remains pressed and so the effects still happen.

So, when you press tab the game (browser tab) loses focus probably to another browser element.

even when I exported the game to exe, does the game run as a browser? it’s very strange - will it help if I add an event that will open the game in full screen mode?

Tab behavior in browsers switches html elements and not tabs that what causes loss of focus.
I don’t think Fullscreen will help so because the exe is just a chromium engine (basically a browser) loading a html file. So, the tab behaves the same.

if I export to itch.io will the problem remain?

Yes, it supposed to still be there considering it is still a browser, but it is better you should still check (A quirk may occur).