HaaTa had a slide deck on key sensing mechanisms that included an optical sensor. Let me see if I can dig it up ...
Ah, here we go. Actuation Sensing.
https://drive.google.com/folderview?id=0B4Wyz4bY7XjLOUZGRnhWcldLMUEFrom Slide 25 in this deck:
Exotic Switch Types - Optical
Pros:
- Little debouncing
- Conceptually simple
- No corrosion
- Simple sense circuit
Cons
- Requires "debouncing"
- Susceptible to dust/dirt
- Light source has a limited life
- NKRO can be complicated (with encoders)
Of these, I think that the third con, and maybe the second con, are the biggest concerns.