I would like to disable mainly the windows key and alt+tab.
Ideally any key that it’s not a letter.
Right now I can close the app with a function I wrote that quits the program if you hold Esc for 3 seconds.
Otherwise, as far as I know, you can block quitting the app using shortcuts like Ctrl + W, etc. However, I’m not sure how to block the Windows key, it may not be possible.
What are you trying to achieve here? Because I’ll be honest, as a player, this would make me not want to ever play your game. It’s annoying enough that some modern titles don’t respect Alt + F4 anymore, but taking away my ability to multitask is a huge nono and I cannot think of any reason why you’d want to do this.
I said it in the first post. Disabling the windows key so my daughter of 2 years doesnt exit the app accidentally. Its a custom made app just for her, not for everyone else.