This is a simple python keylogger.
If you run this script it will output all the keystrokes to a file named: keylogs.txt. It will keep running until the pc is shut down or you close it automaticly.
Make sure that the module pynput is installed you can install it with pip/pip3 install pynput.
You can run this on linux with: python3 keylogger.py