Looping an animation within a picture menu

I made a working custom menu using pictures by following this tutorial. I wanted to have an animation of the cursor flashing on the highlighted option (using pictures + loops), but I'm not used to using loops and I'm not sure where in the code to place the loop so that it still registers key input.

Essentially, what I want is for the pictures of the flashing cursor to loop until a key (up, down, or select) is pressed.

1710961035377.png

1710961065996.png

1710961102413.png
For animating the cursor, you could also use an animated spritesheet, then you don't have to worry about this.
Oh, you're absolutely right. That completely slipped my mind as a possibility!

If I used "Set Move Route" to make the cursor animate, how would I get it to register when a key is pressed?

EDIT: Nevermind, I've figured it out. Using a spritesheet was definitely the better way to do it, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/looping-an-animation-within-a-picture-menu.167004/