Fix for clearing getch() buffer