
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
I assume it's a 6 by 7 unencoded keypad? The usual way is to attach the columns to one port and the rows to another port. You set one port to output all ones except the one you are interested in. You read the other port. The bit with the 0 tells you which switch was being pushed (if any).
| <-- __Chronological__ --> | <-- __Thread__ --> |