Esc To Abort Generating Undo Data

for example wenn trimming out from large wav files it would be verry handy to just press esc to abort the generation of undo data.
instead of untoggle the undo checkbox before the operation and retoggle afterwards.

hope that makes sense.