A simple Keylogger in Python 3.
Requires pynput:
pip3 install pynput
You need to set up the logFile variable to an appropriate location in your system:
logFile = "/home/fabio/python/keylogger/log.txt"
To run the script just type:
python3 keylogger.py
Code comments in Portuguese.