keyboard doesn't have such a list in the docs, or even in the source code. keyboard builds its key information tables at runtime by querying key information from Windows APIs or from dumpkeys, then applying a bit of its own postprocessing.

The key information tables keyboard builds aren't anywhere in its public API, but if you import keyboard, the private keyboard._os_keyboard.from_name table should have all of keyboard's canonical key names. keyboard._canonical_names.canonical_names should have the mapping from non-canonical names to canonical names, if you want that info too, but I'm not sure everything in that table is actually guaranteed to be a supported key.

Answer from user2357112 on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › keyboard-module-in-python
Keyboard module in Python - GeeksforGeeks
April 12, 2025 - It's a small Python library which can hook global events, register hotkeys, simulate key presses and much more. It helps to enter keys, record the keyboard activities and block the keys until a specified key is entered and simulate the keys.
🌐
Reddit
reddit.com › r/learnpython › is there a doc for the keyboard library?
r/learnpython on Reddit: Is there a doc for the keyboard library?
October 10, 2024 -

I want to make a keylogger and learn more about the keyboard module. PyPI has a doc for it but I doesn't go in depth on what methods to input and what they mean.

I found the python standard library but the doc is not there
https://docs.python.org/3/library/index.html

I wanted to know where can I find the doc for it or where can I learn about the keyboard library?

It looks like the module takes Windows keys, will the keyboard library work with Mac as well and can I use the same key inputs when coding?

Also, I am beginner in python will a Keylogger be a good beginner project?

Discussions

python - what are all the key names in keyboard module? - Stack Overflow
In the python keyboard module https://pypi.org/project/keyboard/ what are all the names of the keys? can anybody give me a list of it because I can't find one. More on stackoverflow.com
🌐 stackoverflow.com
Installing keyboard module blues
SO if this button on the remote controle is pressed python has to give a arrow up. I wanted to use the python-keyboard module for that. Now, installing it is a bit problematic. I have tried to use pip install keyboard. But then i get the “This environment is externally managed” message. More on discuss.python.org
🌐 discuss.python.org
7
0
October 22, 2024
How to detect keypress in python using keyboard module? - Stack Overflow
I am making a program in python to detect what key is pressed and based on my keyboard it will make a decision. I want to implement it using keyboard module in python. I would do something like th... More on stackoverflow.com
🌐 stackoverflow.com
Using keyboard in my program
Hi guys, I’m new to python and today I want to add keyboard support to my program, namely the ability to exit the program by pressing ‘esc’, but it’s isn’t work, a screenshot will tell you more about it. More on discuss.python.org
🌐 discuss.python.org
12
0
June 2, 2023
🌐
Raspberry Pi
raspberrypi.com › documentation › computers › raspberry-pi.html
Raspberry Pi computer hardware - Raspberry Pi Documentation
Raspberry Pi keyboard computers combine SBC hardware, a full Linux operating system, and common ports inside a compact keyboard case. Zero. Small and affordable models in a minimal form factor that provide a full Linux operating system and essential ports with low power consumption. Compute Module (CM).
🌐
PyPI
pypi.org › project › keyboard › 0.9.1
keyboard · PyPI
November 13, 2016 - - Maps keys as they actually are in your layout, with **full internationalization support** (e.g. ``Ctrl+ç``). - Events automatically captured in separate thread, doesn't block main program. - Tested and documented. - Doesn't break accented dead keys (I'm looking at you, pyHook). - Mouse support coming soon. Example: :: import keyboard # Press PAGE UP then PAGE DOWN to type "foobar".
      » pip install keyboard
    
Published   Nov 13, 2016
Version   0.9.1
🌐
GitHub
github.com › boppreh › keyboard
GitHub - boppreh/keyboard: Hook and simulate global keyboard events on Windows and Linux. · GitHub
February 13, 2026 - Listen and send keyboard events. Works with Windows and Linux (requires sudo), with experimental OS X support (thanks @glitchassassin!). Pure Python, no C modules to be compiled.
Starred by 4K users
Forked by 456 users
Languages   Python 99.7% | Makefile 0.3%
Find elsewhere
🌐
Claude
code.claude.com › docs › en › vs-code
Use Claude Code in VS Code - Claude Code Docs
January 20, 2026 - Install and configure the Claude Code extension for VS Code. Get AI coding assistance with inline diffs, @-mentions, plan review, and keyboard shortcuts.
🌐
Stack Abuse
stackabuse.com › guide-to-pythons-keyboard-module
Guide to Python's keyboard Module
October 24, 2023 - Whether it's repeatable (ethical) web scraping after some time period, starting some programs on a computer start up, or automating sending mundane e-mails, Python has a lot of modules that make your life easier. One of these is a module called keyboard, and it takes full control of your keyboard.
🌐
pythonlib
pythonlib.ru › en › library-theme73
Keyboard: Python keyboard management - Hide | Pythonlib
Library Keyboard: Input automation, hot keys, macros. Full Hyde for Keyboard Management in Python. Installation, examples, optimization and solving problems.
🌐
Python.org
discuss.python.org › python help
Installing keyboard module blues - Python Help - Discussions on Python.org
October 22, 2024 - SO if this button on the remote controle is pressed python has to give a arrow up. I wanted to use the python-keyboard module for that. Now, installing it is a bit problematic. I have tried to use pip install keyboard. But then i get the “This environment is externally managed” message.
🌐
The Python Code
thepythoncode.com › article › control-keyboard-python
Keyboard module: Controlling your Keyboard in Python - The Python Code
Learn how to use keyboard module in Python to take full control of your keyboard such as hooking global events, registering hotkeys, simulating key presses and releases and much more.
🌐
Real Python
realpython.com › python-keyboard-input
How to Read User Input From the Keyboard in Python – Real Python
February 20, 2024 - One such library is PyInputPlus, which gives you handy tools to accept and handle user input seamlessly. The PyInputPlus module is a Python package that builds on and enhances input() ...
🌐
Arch Linux
aur.archlinux.org › packages › python-keyboard
AUR (en) - python-keyboard
November 22, 2025 - python-spicelib-git · stear-keyboard · stear-keyboard-git · https://github.com/boppreh/keyboard/archive/v0.13.5.tar.gz · @yochananmarqos Done. @detian: Please use a standards based (PEP 517) build according to Python package guidelines. Please install license to /usr/share/licenses/pyt...
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
Python Keyboard module not found - Raspberry Pi Forums
March 20, 2022 - ModuleNotFoundError: No module named 'keyboard'. The odd part is that when I try to install it with ... Requirement already satisfied. I tried this 3 or 4 times to no prevail. If anyone has any ideas on how to fix this, please let me know. Thanks in advance! ... So you installed it with pip3 for Python 3.
🌐
Visual Studio Code
code.visualstudio.com › docs › python › python-quick-start
Quick Start Guide for Python in VS Code
November 3, 2021 - A quick start guide to get you up and coding with the Python extension in Visual Studio Code.
🌐
Python.org
discuss.python.org › python help
Spyder refuses to acknowledge the existence of the keyboard module - Python Help - Discussions on Python.org
November 25, 2021 - I’ve been trying to import the keyboard module using Spyder. I’ve installed the module properly from the terminal, and running “python3 -m pip list” in the terminal says that I do have the module installed. I’m running Spyder (the latest version, which I believe is 5.1.5) in a python ...
🌐
Python
docs.python.org › 3 › library › turtle.html
turtle — Turtle graphics
February 23, 2026 - This is an optional module. If it is missing from your copy of CPython, look for documentation from your distributor (that is, whoever provided Python to you).