Matrix Keypad - Optimisation

You will need to define the number using the if statements you have, then you can proceed with this funtionality
switch(keypressed)
{
case 1:
//
break;
case 2:
//
break;
:
:
case 16:
//
break;
}

The compiler won't accept the 'case (value<25): type statement, I tried ::slight_smile: