My app uses VFP as app scripting language. The main page ( and only page) uses python as the scripting language. The rest of the 3 sections on the main page use javascript and python as scripting languages.

So what would be the best, clean way of exiting the program upon a keypress? I cannot use the windows close button because I am running it in fullscreen/maximized/kiosk mode. Can I have a snippet or an example as to how I could exit and if any "clean ups" are necessary?