There are a way to make this from a prg located in start of app or in any place, it can be like this
ON KEY LABEL ESC do borrar
****
borrar.prg
local cwin=wontop()
release windows &cwin
then, when you are in a form an press esc this form will release.