def right_key_press(): pyautogui.press('right') print('Heard "next slide" - executing right key press')