Several getKey()

No. One is a binary number, one is an ASCII string. Put it this way, if the question was 2 + 3, then the answer is 5. But you are testing for "5" from the keypad. That is really 0x35 rather than 0x05.