Due to a recent post about an inadvertent ESC tap while building an exploded view, which aborted the view with all inputs lost (which I have also done more than once), I wrote a utility that intercepts the ESC key.
The utility then checks, after the first ESC press, whether another ESC is pressed within a 1/4 second.
If not, the original ESC is not sent. Effectively, as if the ESC was never pressed at all.
However, if another ESC is pressed within a 1/4 second, then a single ESC is sent.
Basically, this utility acts as a keyboard oops trap.
It's free. No major install. Easy to try. Easy to remove if it's not for you.
This 1/4 second is adjustable.
You can also easily modify the utility yourself for double tapping other keys, such as for F1, preventing an unwanted Help from starting when what you wanted, but missed, was an F2 edit keypress (details about this are at the link).
If interested, more info and the associated files are over in cadforum.net: