It will read all your keystrokes and record them in a '.txt' file.
I added the extension '.pyw' which will help the program to run on the background. You are free to change it to '.py' if you want to keep the prompt open.
Modules used: Datetime, keyboard
Note: Antivirus programs might interfere with the keylogger
If you want to stop the keylogger then go to the task bar, select 'python.exe' and right click. Now select 'end task' or just restart the device.
TS-Towshin/Keylogger
This is a simple keylogger which was made using python3. It is compatible with Windows but I haven't tried it on macOS or Linux. You might want to disable any antivirus program before running it.
Python