I'm not sure what's going wrong in my code. Does someone have any ideas?
Nothing. You have the keypad connected incorrectly.