Cannot create a pause menu (esc) while using the Mouse Pointer Lock extension

When using the Mouse Pointer Lock extension (say, for a first person game) it seems like it has the built in behavior to prioritize Esc key to unlock the cursor

The issue is ,I want to use Esc key to open my own custom Pause menu, but I end up having to press it multiple times, because the first press only gets recognized and overwritten by this Mouse Pointer Lock extension.

How can I at least prioritize the Esc key to open my menu upon pressing?
I know the code I have works fine, and the problem is just the Esc key, because if I change the key to something else, it works perfectly.
Theres just a conflict with the Esc key and this extension.

First of all, welcome to GDevelop Forums!
Second of all, how exactly do you want it to work?
Do you still want it to show the mouse when you open the menu?
I’m going to assume that’s the case.
I’m pretty sure you can edit the extension to remove the bind, and then the menu should work, but then the mouse would still be locked, if it’s like any other extension, though, you can just use another action with the menu one to unlock the mouse at the same time.