title: Identifying a key press using python msvcrt
body: <p>I want to use the <code>msvcrt</code> module in python, but I can't make it work.<br>
  I am on windows 10, have several "active keyboards" (I can change it from <code>azerty</code> to <code>qwerty</code> and stuff) and did not do/download anything except <code>Python3</code> itself (I'm saying that because maybe there are some requirements or manipulations to do that I don't know about).  </p>
  
  <p>What I'd like to do is simple -- press a key, and then do something according to the key that was pressed (so I need my computer to identify that key).  </p>
  
  <p>I tried it using the following code:</p>
  
  <pre><code>import msvcrt
  while 1:                      #is that necessary?
      char = msvcrt.getch()
      if char == ???            #that's what I'm struggling with
          print("yay")
      else:
          print("nope") 
  </code></pre>
  
  <p>I simply don't know how to "call" my key. I've tried for example <code>'\r'</code>, <code>char(13)</code>, ASCII codes and so on, but none of these worked. Chances are, they're supposed to but I'm doing it wrong- by not working I mean, I could never get a "yay", though the "right" key was pressed. </p>
  
  <p>Thanks in advance!</p>