What is "pynput"

According to the documentation, currently (March/2019) pynput supports two types of devices: the mouse and the keyboard.

You can either control the devices (or move the mouse to a certain position or press a key) or monitor them (check the position of the mouse or the key that was pressed).

The library is available in the Pypi