I'm trying to add a reaction to arrow key. While I was trying to, I deciced to try just print the reaction when the key is pressed, as I found here. When I write anything to console terminal, nothing happens. I am using PyCharm. Q: How to make it print the value as it should print?
import msvcrt
while True:
if msvcrt.kbhit():
key = msvcrt.getch()
print(key)