Is there a way to keep mame from exiting when you hit ESC when in Partial Keyboard Mode?

When using the apple2e driver, I find myself hitting ESC to do stuff like apple ESC-IJKM text screen editing and mame drops out immediately. It'd be awesome if there was a delay or something that you had to hold ESC for 3 seconds or some kind of exit confirmation. "Are you sure you want to exit?"

I must've done this 100 times now.