I have a problem, my custom button only works once and I need it to work at all times.

Hello everyone! This is my first time posting here, so I may be in the wrong place? I also don't know how to tag so... Idk man sorry :,)

Sorry if this post might sound dumb, confusing and probably already answered, however, I still need to ask. It’s my first time using RPG Maker MZ, and, even though I’m following tutorials, I don’t understand much… I’m doing this game for uni, so try to understand that I won't use money on plugins rn, unless perhaps in the future to support the amazing people (live savers these plugins creators!!)

–> Anyways I’m trying to make a menu, a “pretty” one and I’m using SomeRandomDude (I hope that’s his right name) plugin called HUD Maker Ultra, but I wanted the menu to appear when I pressed the key bind “i” as it will be "inventory", so I made this:

1747438788847.jpeg
1747438841590.jpeg

1747438875187.jpeg

1747438894011.jpeg
AD_4nXee4y_eDguE2jUK3l-gIOcm5s4V99fdmCu9-qvTzT8IlzcwLxRq73Ar_jghpKK1HBi5fFKgtkElDGTFDxZVniJ-DwS8enUPWtl0PBVITwfqpucxKgEGWWn07EPKbwn4mTGJPAMF6g


(I saw that I could put the “esc” as a condition, but the image doesn’t stay there…)


This is the game normally:

1747439034030.jpeg


1747439062611.jpeg

​
And this is what appears when I press “i". If I press “i” again, it will disappear.
(On the menu items will appear in the future, but I can do [I think!] but yeah!)

My problem is that this only works once. If I press “i” again, nothing happens… Does anyone have any tips on how to fix this? Or is there an easier way to do this, and I'm just making everything more complicated?

Lots of love and thanks for your time!! <3​
Its the self switches. You never turn them off so they are permanently set to ON after that first time. So it can only run once for that reason.
Thankk you so much! That worked!

Original thread: https://forums.rpgmakerweb.com/threads/i-have-a-problem-my-custom-button-only-works-once-and-i-need-it-to-work-at-all-times.177727/