How to know if menu is enabled?

I have some maps where the menu is not enabled (I use the "Change menu access" command for this).

JavaScript:
$gameSystem.disableMenu();

I recently made some menus accessible by keys (for example, pressing M key opens the map, pressing I key opens the inventory), now I would like to avoid this behavior when the menu is disabled, for this I need to know when the menu is enabled.

how to know when the menu is enabled?
Try:
JavaScript:
$gameSystem._menuEnabled
(Return boolean)

I've moved this thread to Javascript/Plugin Support[MOVE/]. Thank you.

Try:
JavaScript:
$gameSystem._menuEnabled
(Return boolean)
It works programagically!

Thank you!

reporting topic for closure!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/how-to-know-if-menu-is-enabled.136084/