You can't. At best, a command line application could process typed input AFTER the enter key is pressed to pass that input to your program.
Or look into JCurses (never used it nor taken a look at it myself).
There are no new questions, but there may be new answers.
Joined: May 27, 2010
Thank you for your reply. Sorry for probably stupid question, but is it possible then to make a window invisible? does not turn into the tray, but it is invisible, but retaining the ability to process events?