FIX THE "ESC" BUTTON FUNCTION

Hi, the ESC (Escape) button on the keyboard
has the function to interrupt / cancel any current working process.
Unfortunately it is not always the case.
Most of the time, it doesn’t work correctly.
Thanks