Single character input with wake state
<p>Back in college I wrote a game where the computer would sleep for 1 second, wake up and check to see if anything needed to be processed.
Of course, if the user entered a single character command, it would respond immediately.</p>

<p>Is there a way to do that with JavaScript?</p>
