Player Input key down like M to mute microphone


Can someone share a simple script that I can I just add to one of the default player scripts?

The script that does: Whenever a player presses M it mutes the microphone and disables the recorder I guess and enables it when it's turned back on.