Works for me. If you’re testing this in studio, try doing shift+escape. It seems like it doesn’t register as an actual escape press unless you hold shift for whatever reason; it doesn’t even open the menu.
I don’t believe you can intercept it, that is to say you can’t halt the menu being opened/closed.
To my knowledge the escape key alone has never registered in studio so testing this in-game should work fine.
If your goal is to trigger something when the menu is activated though, there’s no reason to track the escape key input, you can use the GuiService.MenuOpened // GuiService.MenuClosed events to detect it.
I just would like to use ESC to interrupt some specific user action in the game, when the user is inserting some objects in 3D space. It’s similar to Blender behavior and almost all other softwares.
It’s a great surprise that Roblox denies the use of ESC for the developers.
It’s not that they deny the use of ESC, it’s that ESC already controls a core roblox function (the menu).
If it is entirely necessary that you use a key for this specific function, why not use a key such as “X” or “Enter”, both are commonly used as Deselect buttons in a variety of softwares.