Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to do key sensing in python

import keyboard, time

# Continuously check if 'c' key is pressed

while True:
  if keyboard.is_pressed('c'):
    print('The c key was pressed')
 
PREVIOUS NEXT
Tagged: #key #sensing #python
ADD COMMENT
Topic
Name
5+6 =