Remove leave dialog in any case.
Fix ctrl detection. It shouldn't detect altgr keypresses.