I am making a game in python, but I want python to react to the W,A,S,D keys without pressing enter. Like:

If w in console:
Y\_pos = Y\_pos + 1

If you guys could tell me how to do that then that would be a big help