How can I get pressed key in Java like getch() in C or C++

Printable View