Photoelectric encoding isn't a good fit for full sized keyboards but it might be a good technology for miniatures where the usual grid of switches and diodes won't fit and rollover isn't crucial. I don't need to resort to anything that complex for 1:3 scale but below that things get pretty tight.
Anyway, if you're interested in historical tech for keyboard input then here you go:
https://kbd.news/A-brief-history-of-keyboard-encoding-2199.html