from
keyboard
import
hook
key
=
input
(“监控按键(如shift):”)
def
event(typ):
global
if
typ
key:
print
(“你按下了”
+
key)
hook(event)