Reversing calculator keypad

It is not usable without some type of interface circuitry to convert the change from 20meg to 5 meg into some value, either 0 volts or 5 volts. I am not engineer enough to conceive of such a circuit.

Paul