Events won't work when interacted with?????

Hi.

So this might just be a dumb question, but let me first just say I've been messing around in RPG Maker for like three years, and I'm not new.

Anyways, the gist is, I'm making a game with chests, and whenever I press Z, it doesn't give the item.

I have set the event's priority to Same As Characters and the trigger to Action Button.
Here's a screenshot:
image_2022-12-23_145230785.png
Please help!
I'm new to RMMZ but, I had an error once where a normal event wasn't running and the solution I found was to simply delete the event and make it again from scratch (the problem was that I added new music to the file and this messed up with the order of the files, if you have added new images to the game, this might be the issue) another thing that could be happening is that you altered the button inputs in the js file and it is not set correctly. Try to start the game and interact with the event with the "enter" key, if it works, the latter must be the issue. If it's not any of the two, I don't know the problem.
And what does the second page of your event look like?
My bet here is that you've forgotten to set your second page to activate when Self Switch A is on, so it's going to that automatically. So, as Dol says, we're going to need to see your second page.
you need to do a second page or a conditional branch works sometimes in my experience.
The highest page number whose conditions are met (or has no conditions) is the one that will be active. So if your Page 2 has no conditions, page 1 will be ignored completely.

Original thread: https://forums.rpgmakerweb.com/threads/events-wont-work-when-interacted-with.153478/