1>>> pyautogui.hotkey('ctrl', 'c') # ctrl-c to copy
2>>> pyautogui.hotkey('ctrl', 'v') # ctrl-v to paste
3
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