Momentary mute on softkeys and GPIO

I would like to have the option be to hold the softkey or an IO in the GPIO unit to mute an input or AUX and unmute when i release it.