handle ESC for stacked dialogs
note about pressing ESC to close dialog