Re-mapping of the "X"button for other purposes

Hello everybody,
I have checked for different ways to do this (Plugins, remapping, in editor commands, google & so on...) but haven´t been able to solve the problem...

What I want is to remove the "open menu" functionality put on the "X" button on the keyboard. I still want the menu to open on escape button but NOT X. I want to use the X for another function that right now gets disordered by the "open menu" function.

Suggestions anyone?
Input.keyMapper[88] = "whatever, just not cancel"
The reason why it is together is because in Input.keyMapper (open rpg.core.js to see for yourself) the x and escape are mapped as the same button. So just create a custom symbol for it.

Original thread: https://forums.rpgmakerweb.com/threads/re-mapping-of-the-x-button-for-other-purposes.102986/