As others have mentioned, keeping the mic closer to you and turning down the gain helps.
You can also run the mic through a signal chain and use a noise gate. So audio only gets sent when it reaches a certain threshold. On linux you can do this with pulseeffects if you're using pulseaudio.
The other hack is just mute yourself. I use a shortcut to do that when I'm typing and not actually talking.