Need help accsessing the item menu in an event and using an item to progress the event

I want to be able to present a certain item to an npc through the item menu whilst in an event. So when you need to do this the key items menu comes up and you pick which item to use, if it is correct the event continues and if its wrong it hurts you and loops. A more RPG'ey example of this is clicking on a chest and having to pick a key from your items, if its correct it opens if it isnt it doesn't.
Is there anyway to do this in the software or can someone help me?
The default way is NOT to go into the item menu, but to use the select item command in the event itself.
Using the select item command will open a selection window for the player, and the selected items ID will be placed into the variable given by select item command.
From there on it's conditional branch to check if the correct item is selected and continue from there.
I feel like a bell end for forgeting that, thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-accsessing-the-item-menu-in-an-event-and-using-an-item-to-progress-the-event.77659/