Buddems2 Buddems2 loading
I may be dumb for not knowing how to do this, but I can't figure out the code for making a character repeat its animation while holding down a key, and instantly stopping to the idle animation when not holding the key.

What the idle and walking animation looks like for more information:
switch costume to [idlenormal v]
wait (6) secs
repeat (2)
next costume
wait (2) secs
end

switch costume to [walk1 v]
repeat (3)
wait (0.25) secs
next costume
end
wait (0.25) secs