A way to Disable the Enter/Space Button Temporarily?

Just what the title says. I have a picture event that I want the player to click to activate, but when they hit enter it makes the picture flash sporadically. Is there a script or maybe something else I'm missing to disable the enter/space button until they click the picture with their mouse?
You would need a script. You might be able to get around it by setting player movement toward an invisible event that has same priority as characters. Use set movement route for player and use repeat and wait for completion.

You can set the event location of the invisible event in front of the player movement route. You will have to move invisible event first before movement. Mind you this will create an infinite loop, and you won't be able to break out of it unless you use another set event location and move the invisible event away from character movement route.

I have not tested that method. It could work. I hope that you find your solution to your problem.
@LadyAdiraa I have an incredibly rudimentary method that might not work, but worth a shot regardless:

* Set up an autorun event on the map this takes place on after you pull up the picture
* Make a conditional branch that uses "Pressing confirm button" as an argument, but don't actually put anything in it
* (Optional) Have it play whatever your version of the buzzer sound is to check if it works

And that should be it. I don't know if MZ is built different enough to make this not work or if mouse inputs also count as Confirm, but it should effectively disable your confirm button for anything else.

I tried it and it prevented me from doing anything but pressing the buzzer sound even when I had another event right in front of me, so... you know, fingers crossed. 😅

If that fails, maybe you do need a script for this or do what @Zeireth is saying.
Thank you both. I actually can use both of what you said in other areas of my game. I figured out how to get it to work by just having the even picture touch thing on it's own page with nothing else. It fixed the issue. But like I said I do think both of your ideas were clever so thank you for taking the time to help me. ♥

Edit: I am terrible at explaining things, lol. I also made the text into a screenshot that fades in while the player doesn't know, mwhahaha! It helped get rid of the text box that was causing the enter picture spasm in the first place.

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-disable-the-enter-space-button-temporarily.146800/