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
1import pyautogui
2
3#pyautogui.moveTo(X, Y, Seconds)
4pyautogui.moveTo(100, 100, 2) #Move to X=100, Y=100 over a 2 seconds period