Having had two light switches die in the shop, suspiciously close to the lathe/bandsaw, I disassembled one to find out why and discovered wood dust. I sand profusely on the lathe, incidentally.
So I came up with a simple solution. I cut the fingers from an old nitrile glove and made tiny condoms for the switches. Remove the cover plate, stretch the finger tip opening over the rectangular boss that normally extends into the cover plate, and replace the cover plate. Friction holds it in place, and you now have a dust resistant switch.
And a conversation starter if there ever was one - especially if you use blue gloves...
FWIW