I use two products I picked up at Home Depot that have worked well.
Both products are formulated for electrical use.
CRC QD Contact Cleaner
CRC 2-26 Multi-Purpose Precision Lubricant
If you look up "CRC Contact Cleaner" on Amazon you will find a huge range of products. I'm no expert on this stuff but my guess is that whatever you are trying to do there is a product formulated for that purpose.
The other reason not to use WD-40 for this purpose is that WD-40 attacks rubber and plastic. I'm a big fan of WD-40 but not for electronics.
CRC QD Contact Cleaner
CRC 2-26 Multi-Purpose Precision Lubricant
If you look up "CRC Contact Cleaner" on Amazon you will find a huge range of products. I'm no expert on this stuff but my guess is that whatever you are trying to do there is a product formulated for that purpose.
The other reason not to use WD-40 for this purpose is that WD-40 attacks rubber and plastic. I'm a big fan of WD-40 but not for electronics.