In my code if you have the Cancel property set last then the CommandButton is still the default and at the same time ESC will execute the button, too. However, if you set Default after Cancel, then the button executes when enter is hit, but does nothing when ESC is hit. So I'm not sure if they're supposed to be exclusive, but they only are in one circumstance.

-Ben
http://www.rgcweb.org/kix