How do key matrices work?
pcbheaven.com