Fai :

int tasto;

tasto=_getch() ;

if (tasto==0){

tasto=_getch() +1000;

}
printf("%i",tasto);

tasto avrà un codice univoco sempre :adhone: