Java Scanner: read immediately on keystroke
<p>This might seem like a very simple problem, but I am unsure how to do it.</p>

<p>If I have Scanner attached to System.in, and want to return a token <em>immediately</em> upon pressing <em>any</em> button (i.e. not having to press enter to proceed), how can I set this up? Thanks in advance.</p>
