Issue with pynput

Hi all,

Taking a course in ethical hacking and am building my first keylogger. Attached are the photos of the error I am running into. Does anyone have any advice on how to fix this?!