How can I wait for input inside of blueprint macro?

Basically what I want to do is have the macro wait, and once I press a certain key, it continues running. After a bit of searching I can’t seem to find any way to do this.

Okay, I’ve figured it out, but now I have another issue. Basically what I did is I have a while loop that is active until the z button is input. but as soon as the while loop starts, it crashes, with an infinite loop.

How about this:

This will run only after you’ve pressed the button and until you release it.

I got it to work like this. Basically what I’ve made is a sort of while loop with a delay, but the delay is so small it’s very rare, and barely even possible that anyone would ever not have the button down by the time it loops again. it’s worked for me so far and nothing has gone wrong with it.

It sounds like what you want is an event delegate. It’s pretty involved, so I’ll link a tutorial.