IF keyascii = 27 thisform.cmdexitg1.SetFocus() thisform.cmdexitg1.Click() ELSE ...that crossed my mind at some point, also works.
>IF keyascii = 27 > thisform.cmdexitg1.SetFocus() > Keyboard "{Enter}" PLAIN CLEAR >ELSE >... >to see if it eliminates c5. Or add property lExitNow to the form