title: Python method for reading keypress?
body: <p>I'm new to Python, and I just made a game and a menu in Python.
  Question is, that using (raw_)input() requires me to press enter after every keypress, I'd like to make it so that pressing down-arrow will instantly select the next menu item, or move down in the game. At the moment, it requires me to like type "down" and then hit enter. I also did quite a lot of research, but I would prefer not to download huge modules (e.g. pygame) just to achieve a single keyDown() method. So are there any easier ways, which I just couldn't find?</p>
  
  <p><strong>Edit:</strong>
  Just found out that <code>msvcrt.getch()</code> would do the trick. It's not keyDown(), but it works. However, I'm not sure how to use it either, it seems quite weird, any help here? This is what I got at the moment:</p>
  
  <pre><code>from msvcrt import getch
  while True:
      key = getch()
      print(key)
  </code></pre>
  
  <p>However, it keeps giving me all these nonsense bytes, for example, down-arrow is this:</p>
  
  <pre><code>b'\xe0'
  b'P'
  </code></pre>
  
  <p>And I have no idea how to use them, I've tried to compare with chr() and even use ord() but can't really do any comparisons. What I'm trying to do is basically this:</p>
  
  <pre><code>from msvcrt import getch
  while True:
      key = getch()
      if key == escape:
          break
      elif key == downarrow:
          movedown()
      elif key == 'a':
          ...
  </code></pre>
  
  <p>And so on... Any help?</p>