Pretty simple with a midi processor :
Map any midi message with X value to :
Stop / Program Change X / Play
Without midi processor maybe any Program change followed by Note 35/B1 (sequencer restart) is enough. Didn’t try.
Do you have midi processors (hardware / software) or other advanced midi things?