Capture AirPods Pro touch buttons

What about capturing the touch buttons of the AirPods Pro that's actually to play/pause music or to toggle ANC.
I would connect AirPods Pro to a Keyboard Shortcut in Zoom or MS Teams to toggle Microphone on or off while walking through my working room.

I need this soooooo much to mute/unmute zoom while getting other stuff than sitting in front of the computer! If I could give a thousand upvotes I'd do it