key input check

key input check with kbhit() and getch()