Mike,
An alternative appraoch that isnnot name dependent and will probably make your users happy, is to set the cancel button's Cancel property to .T. making it the Escape button. This causes the Escape key to fire the Cancel button's Click and a click on teh Cancel button will cause LastKey() to return 27 indicating the Escape key.
Now in your LostFocus you simply;
IF LastKey() = 27
RETURN .T.
ENDIF