Kevin,
It's far, far better to use the form.KeyPress() method to process keystrokes that to use OKLs. Also if you have a CommandButton with it's Cancel property set to .t. its click event will fire.
>Just so you're not in suspense: I figured out my problem using the form.keypress method and testing for nKeyCode = 27. Thanks for the suggestion, but this approach doesn't require a separate .prg file so I like it a lot!