Use a "key down", or equivalent, in the first state, use a "wait" action in the next state. Set the wait timer to something small like 0.1
Have the states be connected together, and hey presto! A simple repeating loop as long as the button is pressed.