Mister_e made a nice configurable keypad routine. It uses a matrix, so for a 4 x 4 keypad it uses 8 ports. 3 x 4 would be 7 ports. http://www.picbasic.co.uk/forum/cont...Keypad-routine