pyautogui.hotkey('enter') Available values: pyautogui.readthedocs.io/en/latest/keyboard.html#keyboard-keys