/* ... */

char c;

c = getch();
if ( c == 'M' )
/* massimo */ ;
else if ( c == 'm' )
/* minimo */ ;
else
/* qualcos altro! */ ;