Disable menu input?

Been looking around in the engine and on the forums for a way to disable the command of opening the menu screen (with the default hotkey). I have certain events in my game where the player will take part of events that have happened in another timeframe, and instead of showing it as a flashback the player can interact with it by controlling characters that is part of that event. Have been able to disable other menus that I use from scripts, but I still need a way to disable the menu during these parts of the game, anyone that can enlighten me about this?
You can use the command Change Menu Access.

Spoiler
O1oAJD1.png
Under page 3 of events, there is an option to disable menu access. Just run that before the flashback starts.
Wow, I have never used that and cant believe I havn't seen that before... Thanks a lot guys xd


Was so sure that this needed to be done with a script call that I didn't even care to look in the event menu -.-

Original thread: https://forums.rpgmakerweb.com/threads/disable-menu-input.62594/