I like using push to talk whenever I have to use my microphone. Unfortunately the program I use the microphone the most with - Microsoft Teams - does not support this.
So I went ahead and made a global push to talk script. It only works on Linux (for now) and is written in python.
It does work though, so I now have push to talk on any application where I want it!
The script is here