>if nKeyCode = 27 > nodefault > thisform.release >endif >>>I have a nice application that requires the user to use the close form button to close down any open form. I tie the escape key to the cancel button. Now they want to have the Escape key leave the form if the cancel key is deactivated.