Loop with different keypress and pause

Is it possible to creat a Utill loop in which several keys are pressed with different pause intervals assgined to each key?

Not sure, maybe something like this:

03-pty-fs8

[demo] Keypresses in a loop.kmmacros (4.6 KB)

This does not work cuz all the groups run sequentially. maybe i should try to embed several loops in the main loop

If you want them to run non-sequentially, you can create several macros, one for each specific keypress, with its specific pause and inside a loop. Then you launch the macros from a master macro (with Execute Macro actions).

sorry for another question. is it possible to create an infinite loop? I want to embed the infinite loops in the main loop