attempted to do the keypad function, but I believe the error is in the bit masking.