Capturing 'Esc' key?

When in edit mode within a form, is there any way to capture when the user has pressed the ‘Esc’ key to perform an If/Else statement?

Subject: Capturing ‘Esc’ key?

Maybe this will help.

http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllThreadedweb/dfbda430952d6aed8525726b004abbe1?OpenDocument