Host Microphone control

i'm a newbie about arduino world. My question is: is it possible control the status of the host microphone (on PC/Mac/Linux) using Arduino? what i want to do is to mute/unmute the microphone using a simple button. I've an Arduino Leonardo board with HID supported (i think that i can send keybord events to mute mic but it's probably a weak solution cause Mute keyboard shortcuts can vary depending on operating system...i look for a more stable solution).
Thanks in advance