Usa la funzione getchar. Per la faccenda dei tasti freccia dai un'occhiata qui.