This might seem like a very simple problem, but I am unsure how to do it.
If I have Scanner attached to System.in, and want to return a token immediately upon pressing any button (i.e. not having to press enter to proceed), how can I set this up? Thanks in advance.