Woohoo! Found it.

http://www.picbasic.co.uk/forum/show...57&postcount=9

The Rows and Columns may be different than yours. ?

The "fix" was
Code:
KeypadINT:    
    @ READKEYPAD _ByteA                          ; Get the keypress
    TRISB=%11110000                              ; Reset I/O's
    PORTB=0                                      ; Set all columns LOW
But now it sounds like that whole program is what you want. (With some sleep time added)
Combination Gate Opener.

Check the rest of the thread. It developed further.