How to listen to keyboard events in a console application
<p>Now, I'm developing a command-line application somewhat like bash. For implementing the autocomplete functionality, I must know users have pressed Tab key. But i don't know how to listen to keyboard events in a console application.</p>

<p>any ideas? Thanks in advance.</p>
