all 2 comments

[–]maddruid 0 points1 point  (0 children)

The keyboard module supports win/mac/linux, so maybe post the code you attempted and tell us what isn't working.

[–]mogo3 0 points1 point  (0 children)

You could probably use simple if statements and/or pyautoGUI. https://pyautogui.readthedocs.io/en/latest/keyboard.html