If you don't mind that I self post to a youtube video, but this segment shows how the pattern and placement of the mic can reduce pc fan and keyboard noise.
Secondly, hearing typing when someone types is ok, so please don't treat it as a problem in itself. Obnoxious noise level is a problem, which can be solved by increasing SNR: bringing the mic closer to the sound source, swapping a mic for another transducer type or another polar pattern, putting some kind of dampening on the line of sight between the mic and the noise source.
I've written a guide for voice recording which covers most of the basics. Hope you'll find it helpful: https://indiscipline.github.io/post/voice-sound-reference/
One thing I need to get around to doing is to configure somewhat to let me mute with a keyboard shortcut when Zoom/Teams/etc. is not the active window. Why there isn't a built-in universal shortcut is very confusing to me.
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.