simple analog keypad decoding