text: Hook and simulate keyboard events on Windows and Linux
  Project description
  Take full control of your keyboard with this small Python library. Hook global events, register hotkeys, simulate key presses and much more.
  Features
  - Global event hook on all keyboards (captures keys regardless of focus).
  - Listen and sends keyboard events.
  - Works with Windows and Linux (requires sudo).
  - coming soon.
  This program makes no attempt to hide itself, so don’t use it for keyloggers.
  Usage
  Install the PyPI package:
  $ sudo pip install keyboard
  or clone the repository (no installation required, source files are sufficient):
  $ git clone
  Then check the API docs to see what features are available.
  Example
  import keyboard keyboard.press_and_release('shift+s, space') keyboard.write('The quick brown fox jumps over the lazy dog.') #. keyboard.wait()
  Known limitations:
  - Events generated under Windows don’t report device id (event.device == None). #21
  - Linux doesn’t seem to report media keys. #20
  - Currently no way to suppress keys (‘catch’ events and block them). #22
  - To avoid depending on X the Linux parts reads raw device files (/dev/input/input*) but this requries root.
  - Other applications, such as some games, may register hooks that swallow all key events. In this case keyboard will be unable to report events.
  Project details
  Release history Release notifications
  Download files
  Download the file for your platform. If you're not sure which to choose, learn more about installing packages.