If you want the loop to literally pause, so it'll press the next key in the sequence rather than always starting with the first key in the sequence, something like this could work:
Begin Text Compare : [{CMDALREADYEXECUTING}] Equals '1'
Set Boolean [>{CMD}PauseLoop] to Toggle
Else
Set Boolean [>{CMD}PauseLoop] to False
End Condition - Exit when condition met
Start Indefinite Loop
Press 1 key and hold for 0,1 seconds and release
Start Loop While : [>{CMD}PauseLoop] Equals True
End Loop
Press 2 key and hold for 0,1 seconds and release
Start Loop While : [>{CMD}PauseLoop] Equals True
End Loop
Press 3 key and hold for 0,1 seconds and release
Start Loop While : [>{CMD}PauseLoop] Equals True
End Loop
Press 4 key and hold for 0,1 seconds and release
Start Loop While : [>{CMD}PauseLoop] Equals True
End Loop
Press 5 key and hold for 0,1 seconds and release
Start Loop While : [>{CMD}PauseLoop] Equals True
End Loop
End Loop
Note that the command will keep running in the background, so if you want to stop it completely you'll need to either stop all commands, or use an additional command that specifically stops this one.
If you do fully stop this command, it'll start at the first key in the sequence again.
Not necessarily the most efficient approach, but should be relatively simple to implement.