Key Down and Key Up events

Hi I'm trying to use my CMD key as a "push to talk" button to trigger the microphone.

I want to send a particular keyboard shortcut on CMD key down ( to toggle the microphone ON) and send that same second shortcut a second time on CMD key up (to toggle the microphone OFF). Is there a way to do this via BTT?

Thank you!