Forum rules - please read before posting, it can save you a lot of time.
on "keypress"{if(Keyboard.KeyCode==VK_ESCAPE){var WinQuit = Game.LoadWindow("interface\system\quit.window"); WinQuit.Center(); WinQuit.GoSystemExclusive(); if(WinQuit.xResult) { Game.QuitGame(); } else Game.UnloadObject(WinQuit); }}