Dan is correct that WD-40 is not a contact cleaner and not for use around electronics.
Pencil erasers are a common, at hand, remedy for corroded contacts. They sometimes solve and immediate problem, for the short term. I used to use them on model railroad tracks, but no longer do.
Based on some previous manufacturing work, I would not recommend them personally.
Most pencil / ink erasers are various grades of abrasives bound with silicon compounds. A number of years ago, an analysis of the failure mode of circuit board finger contacts for a company that I was working for resulted in a determination that the use of pencil erasers by one specific field support group to clean the finger contacts was the cause of the ultimate failure. All the failures were traced to one particular support group that had their own "cleaning" procedures. They used pencil erasers. The erasures left a coating of silicon compounds on the contacts that, over time, accelerated corrosion of the contacts. Contact material manufacturers that were involved at the time all recommended non-lubricating cleaners specified as electrical contact cleaners, no specific brand recommendations, just a cleaner specified as an electrical contact cleaner, with no lubricants added.
So ... my choice is contact cleaner sprayed on a Q-tip to gently swab dirt, oil and salts from sweaty fingers off of the contacts. Second choice would be denatured alcohol on a Q-tip.
Sorry for so many words on this one!
tvr