la chiamata di sistema read non dovrebbe essere bufferizzata o la getch che legge un carattere dallo standar input.
ciao
sergio