1>>> pyautogui.press('enter') # press the Enter key
2>>> pyautogui.press('f1') # press the F1 key
3>>> pyautogui.press('left') # press the left arrow key
4
1>>> pyautogui.typewrite('Hello world!\n', interval=secs_between_keys) # useful for entering text, newline is Enter
2