Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

if keyboard.is_pressed

# keyboard module
# windows: pip install keyboard
# mac: pip3 install keyboard

import keyboard as k
if k.is_pressed("a"):
  # if the a key is pressed by the user
  print("You have pressed the key 'a'")
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+9 =