Skip to content

Instantly share code, notes, and snippets.

@Zzz9194
Created June 10, 2020 13:35
Show Gist options
  • Save Zzz9194/a8cdbb2b6ceade25e1449e1aa7ef198a to your computer and use it in GitHub Desktop.
Save Zzz9194/a8cdbb2b6ceade25e1449e1aa7ef198a to your computer and use it in GitHub Desktop.
Tracks what has been typed on your keyboard w/ the pynput module.
# Requirements pynput module
from pynput.keyboard import Listener, Key
def on_press(key):
print(key + " was pressed")
with Listener(on_press=on_press) as listener:
listener.join()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment