Optical switches use light sensing to trigger switches. It works with a mechanical switch to block the light beam. When the switch is pressed, the switch lever moves downward to trigger the light sensor on the PCB and activate the key.