Quote Originally Posted by triton99 View Post
...
Also is there anything I can do to allow the ICSP adapter to be connected and still be able to have the keypad on PORTB. Or is it just good practice to remove the cable after programming the PIC?

Unless I am mistaken, you can also use the ICSP cable to debug your program. So yes, in that case you'd have to leave the cable connected after programming the PIC. You just have to make sure your program does not interfere with Port B pins 6 and 7.