kbhit() function added