Conditional Branch Button pressed button stopped working

So, I managed to create a very simple stealth system that was working until for some reason, RPG Maker MZ stopped recognizing key inputs. I debugged the code booleans by pressing F9 and when I set the flags to either on/off (true or false) the codes DOES work, but the input is not detected.

Here's screen caps of my code.

1. I used Common Events so I can keep everything clean and neat in my levels. My first event checks for key inputs

1762918889255.png


2. The second one is called and it properly changes the sprites and sets the stealth flag to on.

1762918897905.png


3. This World Event checks whether the player is sneaking or not, second page is a blank slate so I can add whatever I need.

1762919013738.png


4. Lastly, I have my NPC that moves on the map but won't collide with the player and engage in battle if the player is on stealth mode

1762919115968.png

1762919129263.png



As I said, this WAS working on like a charm, then I opened up the project today, and suddenly NO keyboard input is being detected when using neither Ok, Cancel, nor PageUp/Down keys. When turning on the flags on debug, everything works as planned. Any advice on how to fix this? I started using RPG Maker MZ very recently.
I didn't read all that, but I notice that in the third pic you have page requirement that self-switch A ON. And then in the event it would turn that self-switch ON. So it'll never run?
I didn't read all that, but I notice that in the third pic you have page requirement that self-switch A ON. And then in the event it would turn that self-switch ON. So it'll never run?
Funny thing is, it does run! Now its working, I just added a wait event. But once I change my sprite, and I start moving, my walking animation loops once I stop lmao. I'm not sure how to fix this, I've tried changing the sprite using the set movement route event on the player, but the bug persists

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-button-pressed-button-stopped-working.180987/