Sometimes you just have to let them dry out. For example you take the bios battery out of a mother board and make sure there is no power going to it at all you can just dip it in some water. As long as you let it dry out it will work fine.

I put my keyboards in the dishwasher when I spill stuff on them...