created computePressedKey in Keypad class