Disabling exit full screen for Microsoft office

I wish to disable exiting full screen for Microsoft Office apps. Particularly Excel and word. Excel for example uses escape to exit out of formula editing and if I hit it one too many times, macOS tends to escape full screen; which is doubly annoying when you're doing split screen full screen.

If I try to create a trigger where pressing escape does "Do Nothing", BTT intercepts all the escape key presses and the excel functionality of using escape key doesn't work. I only wish for this to ignore the disable full screen command. it leaves the escape key functionality as is otherwise

You can do it like this:

esc_preset.bttpreset (4.7 KB)

Hi Andreas, Thank you very much.

The short cut posted does indeed block ESC in fullscreen, but it blocks any "kind of" ESC.

What OP is asking, and I need as well, is to only block the leaving of fullscreen due to ESC, not all the other ESC actions like exiting formula editing.

I'd be great if we can come up with a clever solution for this? Like blocking Fullscreen leaving, but I can still leave with my regular fullscreen hotkey?

Thank you,
Marvin