FYI, if you ever hit the escape key while in a lisp program, AutoCAD WILL generate an error, to handle that error you should define an error handler for your lisp program. It can be simple or complex ... but you must have one if you are going to ever hit the escape key while in a lisp program.