The keyboard matrix is a way of describing how an electrical switch matrix obfuscates the electricity flowing to the switches. It is used for all kinds of keyboards – acoustic pianos, laptop keyboards, synthesizers, video games controllers, etc. Here’s how it works on a standard computer keyboard. The diagram below is one row on the keyboard – pressing this row of keys will send current to the left shift key and then to any number of symbols that are pushed at that instant in time.
Row A Row B Row C Row D
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
In this instance, there are 16 keys in total because any number needs two rows.