Disabling keys in forms

Hello everyone,

i am working on a startup script which asks for some information. and AFTER the info was submitted. they can continue.

i already managed to make the “ok” button clickable after the fields have some input, and the windows is maximized so that the ‘X’ and taskbar etc are not visible. But the form is still closable with the escape key and ALT+F4. i was scouting the web for answer last week but is this a really hard thing to accomplish?

i tried various things with keypress and keydown events. keypreview is set true. i tried when escape is pressed the script itself will start again (not working). my next idea was to put the whole script in a loop.

any help appreciated