System.in.read() method give string at one time, and don't give anything until I press Enter. I need something like getch() in C.