Script question: exit handlers and how to trap the Esc key?

 From:  Cemortan_Tudor
9918.4 
if (!pointpicker.waitForEvent()) {

debug('doCoordinates() canceled: ' + pointpicker.cancelReason);
moi.view.setCPlane(savedcf);
return false;
}
- Tudor -