Added getch function
Added getch function