title: readkey command in python
body: <p>I want my Python program to stop and wait until any key is pressed, then to print the key that was just pressed.</p>
  
  <p>It's like the Pascal's command <code>key := readkey;  writeln(key);</code>.</p>
  
  <p>I' ve tried yet to use the msvcrt module and the getch command but it didn' t work. I tried this:</p>
  
  <pre><code>import msvcrt 
  s = msvcrt.getch()
  print (s)
  </code></pre>
  
  <p>And it didn' t wait I pressed a key, it immediately printed <code>b'\xff'</code> and it ended the program</p>
  
  <p>I' m working with python 3.4</p>
  
  <p>Do you know any way to help me ?</p>