using getch to capture input