title: Getting input from console without cin?
body: <p>I'm trying to make a little console program that will basically be console pong. So right now I have this:</p>
  
  <pre><code>int main()
  {
      while(1)
      {
          clearScreen();
          restThread(100);
      }
      return 0;
  }
  </code></pre>
  
  <p>The only input I need to poll is if the user has pressed the A or D key since the screen was cleared. I will also need to know when the key is released. I'm also trying to do this cross platform.</p>
  
  <p>so really all I need is like an if(keyWasDown('a')) {} sort of function.</p>
  
  <p>Thanks</p>