Turn off pressing esc to exit full screen apps
When using full screen apps I am sometimes pressing esc to exit some dialog box, sometimes it works, sometimes it doesn't and pressing the key makes the app exit the full screen. And then when I make the app full screen again, it is added in the right end of my desktops, not where it was before, so this one simple press esc makes real mess.
Can I turn off the esc key that turns off full screen apps? I don't want it to do so. I want to exit full screen app ONLY by clicking the red x in the window.
MacBook Pro 16″, macOS 13.4