You're probably looking for something called "dielectric grease".
They're usually silicone-based and despite their name being dielectric it is not intended as some kind of insulating grease, it just isn't conductive. It is low-viscosity and will slide out from under metal-to-metal contact, allowing conduction while helping to prevent oxidation, corrosion, etc. from forming on things like switches and connectors.