You would set one pin high/low and see which pin in the matrix is pressd ny seeing which reads the same. Reading in succession and keeping track of which pin you are reading will tell you which key is pressed. Joe