SD Key Logger For capture keyboard copy this steps :- 1) You Can install SD KeyLogger using pip install SDKeyLogger 2) And then import it from key_logger import SDKeylogger 3) After that add this two line capture = SDKeylogger("file_name") capture.start() Note:- Here, in SDKeylogger you can pass the file name with extension example :- SDKeylogger("key.txt")