title: Can't seem to get .getch() to work (Python 2.7)
body: <p>I'm trying to detect a key press to determine whether the user wants to play again, but msvcrt.getch() is just not working for me. This is my code:</p>
  
  <pre><code>import msvcrt
  #the game here
      print "Do you want to continue? Y/N"
      if msvcrt.getch() == 'Y' or msvcrt.getch() == 'y':
          print"Let's play again!"
          print"-----------------"
      elif msvcrt.getch() == 'N' or msvcrt.getch() == 'n' :
          "Okay, hope you had fun"
          break
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p><strong>EDIT:</strong> The answers below do work on the command line, for some reason just don't in PyCharm</p>