1# in command prompt, type "pip install pynput" to install pynput.
2from pynput.keyboard import Key, Controller
3
4keyboard = Controller()
5key = "a"
6
7keyboard.press(key)
8keyboard.release(key)
1keyboard = Controller()
2key = "a"
3
4keyboard. press(key)
5keyboard. release(key)
6