You can simply use:
choice /c wsad /n /m "Press a key."
And: if %errorlevel%==1for detection wand %errorlevel%==2for detection s, etc.
This is an easy way to detect keystrokes. You cannot use only one batch to complete this task. However, you can use Powershell. In addition, if you are on Windows RT, you need to update it. It is probably best to get a new PC.
source
share