title: Keypress detection
body: <p>I've been trying to get keypresses to be detected in a Python program. I want to find a way to do this without using Tkinter, <code>curses</code>, or <code>raw_input</code>. Here's what I'm going at:</p>
  
  <pre><code>while True:
      if keypressed==1:
          print thekey
  </code></pre>
  
  <p>Does anyone know how this is possible?</p>