How do you use key presses in programs

i've been trying for half an hour and can't figure out how to use key presses

print('press SPACE to start')
#what i want to do here is something that can detect if you pressed the SPACE key
age = input('how old are you')
print(f"you are{age} years old")
1

请先登录再写评论。