Trouble with Common Events in Items

A lot of times, I see events where you look at the "map" item in your inventory, you could look at what's on the map and then click again and it goes away. I tried doing that with a common event, but it doesn't work when I click confirm to erase the picture. Can someone please explain the mechanics of this and what I'm doing wrong?

Screenshot (15).pngScreenshot (16).pngScreenshot (17).png
The way you have it set up, it checks for the key press once, and then exits the event. I would recommend instead of checking for the key press that way, just put up an empty show text command with a transparent background to wait for input.
Thank you so much! That worked exactly like I wanted!

Just another question, do you know how to make an image fill up the screen?
To fill up the screen, the image needs to be in the same size as the screen you're using for your game, and then the coordinates in the show picture need to be set accordingly to that size.
If you just Show Picture at 0, 0 with the origin set to the top left corner, you won't have to worry about calculating where the center of the window is.
Thank you!!

Original thread: https://forums.rpgmakerweb.com/threads/trouble-with-common-events-in-items.37085/