Use a FlipFlop gate (yes that’s what it called) and connect to your activator.
Press X once and your flow will go down one path (A). Press it again this time it flow will go down the other (B). Keep pressing the X key and the gate will flipflop back and forth.