I am a newbie on my third project, but I am having problems getting the inputs from a membrane ( which I have working ) to make a 7 segment display either increase its count each time one button is pressed, or decreased if the other button is pressed. It must only count up to 9 and then roll over to 0 again ( or 9 when it counts down to 0 )I need to increase a counter, and then convert it with a lookup table to send serially to a HTC595 to light the correct segments. ( there are 4 such 7 segment displays , and 8 buttons of course )

I am calling one digit GT and have been playing first with getting it to increment when button F is pressed, which it does, but every other button also increments it.......( The keypad sketch is from one of the examples in the Keypad library )

Once I get this working I still have to work out the lookup table for the serial out.

Yes I only posted part of the sketch, I have put it all below.The extra = was in case I had got that wrong and i was worth a try :-)I even tried putting the missing t in the cusomkeypad but that didnt help either.

I have got it all working, even the shiftout to the leds.I used switch/case to do the incrementing of the counters, and a lookup table from the counters to a binary number representing the LED segments.

That's 3 projects working in my first month, thanks for the advice guys.