Disable "escape" When Recording

Perhaps i’m being a giant retard here, but is it possible to disable the escape button when recording?
That way it doesn’t just stop recording when accidentally pressing esc or enabling/disabling edit mode…lol.

Assigning the function to another key? (pattern Editor -> Play -> Toggle EditMode)
If you have a mediakeyboard, you might be even able to assign it to one of your media keys.