I would not use WD40. Good lubricant, but it attracts dirt over time.
Go to Radio Shack and get yourself a can of electronic parts (contact) cleaner. You will have much better long-term success.
Of course, not as versatile as WD40, but the electronic cleaner does not leave a residue to attract more dirt.