I need help with a little code entry pad.

but if i set it a different variable, which increases each time a button is pressed, i think i know what to do