How to create a toggle macro for repeating key presses?

I'd like to set up a macro that works like a toggle:
When I press a specific hotkey, it should start repeatedly sending a key input that I’ve configured (e.g., every few milliseconds), and when I press that same hotkey again, it should stop.

Basically, I want to simplify tasks that require rapidly pressing a specific key multiple times in a short period.
Is there a way to achieve this kind of toggle-style macro in BetterTouchTool?

Thanks in advance for your help!

Here is an example:

1.) Assign the "Cycle through multiple actions" meta action to a shortcut:

2.) Add one action sequence with a named for-loop with a very high iteration count:

3.) Add a second action sequence (this will be triggered once you hit the shortcut the second time) to cancel that for loop:

cycle_loop_example.bttpreset (7.3 KB)