You could try Razer Synapse 2.0 select Keyboard > Customize
then click on key with macro assigned and in popup window Key Assigment
set Playback Option
as Toggle continuous playback on/off using assigned key.
It will stop/interrupt your macro by pressing the same key by which it was started.
P.S. Should say about one drawback of the described above method: the macro script will be running forever until you stop it.