Keypad using one analog pin