Matrix Keypad - Optimisation

Boy, you guys are snappy,

@robtillaart

I see how your code is superior; if i understand it correctly, instead of checking the values for each if statement, it instead reads through all the possible values incrementing the keypressed and once it exceeds the value it doesn't increment any further an stays the value right before the value it no longer exceeds. brilliant

@CrossRoads

you say that Case won't work right? it would be nice if it did. why wouldn't it and what situation would be appropriate for the case function??

I haven't come across that yet.

thanks again,

Carl