Are you trying to use Mister_e's Keypad.bas program ? You will need the statement INCLUDE "keypad.bas" early in your code. You will need interrupts, and it will require you to use MPASM as the assembler unless you use Darrel's modified version.