I designed two circuit boards using optical interrupters to replace the contact in Wurlitzer, Rodgers and Gulbransen keyboards. I did this for some Garden State Theatre Organ Society instruments and my own instruments. The circuit boards have eight interrupters each, so a 61-note keyboard requires eight boards, one of which has to be cut down to 5 circuits. One of the circuit boards has the optical slot parallel to the keys and the other is perpendicular. each note has an optional LED indicator to make it easy to adjust the trigger point.
On the Gulbransen, I mounted the boards at the back end of the keyboard and cut thin brass strips to act as flags that block the light path. On the Wurlitzer keyboard, I mounted the boards under the keyboard, using the original Wurlitzer contact bars as the optical flag.
So far they have proved to be highly reliable. The cost is about one dollar in parts for each note plus the cost of the circuit board. The circuit can use anything from 5 volts up to power the optical isolators and LEDs.