Code not doing what I want it to do

And remember,
1 is one,
'1' is ASCII 1 (49) as defined in your keypad array