Hi Nadya,
It sounds like the Filer object is taking the escape key press.
Your application is then (some how) going to have to figure out either why control has returned from the filer object back to your VFP code - or hope that LASTKEY() still returns 127.
Since the Filer object is doing all the work, and the number of iterations around your loop is relatively tiny - there is almost no overhead in using LASTKEY().
Houston.
censored.