[MZ] Menu button

I'm making a game for android. There are times when the menu call button (in the game) must be removed.
How can this be implemented? A script command?
menuButton.jpg
By default, the menu button is shown when all three of these are true:
  1. The Touch UI setting in the options menu is ON:
    optionTouchUI.jpg

  2. The menu is enabled. This can be changed using the Change Menu Access event command:
    changeMenuAccess.jpg

  3. No non-Parallel event is running.
For more control, you would need a plugin.

Original thread: https://forums.rpgmakerweb.com/threads/mz-menu-button.142549/