Trying to make a closet hiding event

Hello, I come to you in a time of great need.

I'm currently trying to create a repeatable event for hiding in a closet, and coming out at the prompt of a button press. The problem is, however, that the player can still move around, use the inventory, generally do things he shouldn't be able to do. Is there a way to restrict player interaction in a way where only the required button prompt will progress the event, or would I have to download a plugin of some kind?

Current code is attached.
Screenshot (348).png
Create an event that use autoevent. Autoevent stops all movement/actions. To disable menu access, there is command event, so put it into event while going into closet, then enable again after player left the closet.
An alternative to using an autoevent would be to place the player in a no-passability tile.
Thank you very much, that worked!
there are also event commands to disable various menu access and other functions.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-a-closet-hiding-event.152778/