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