Find Your Hat Project

Hello,

I’m making the Find Your Hat Project, I was wondering, I’m using prompt-sync in order to get input from a user, but I would like to do the following:

When I ask a user to enter which way he wants to move, I would like the program to do it immediately instead of pressing ‘Enter’ after each command.

Can somebody point me in the right direction?

image