Schau mal in der Hilfe nach:
Input
Waitkey
Inkey