Matrix Keypad - Optimisation

case "a": ==> case 'a':
you must use single quotes, otherwise it is a string and the case will use the address of the string or so.