# This program uses the PyAutoGUI module to manipulate keyboard input

import pyautogui
# Sending a String from the Keyboard
pyautogui.click(100, 100)  # put file editor in focus
pyautogui.typewrite('Hello world!')
pyautogui.typewrite('!dlrow olleH', 0.25)

# This program uses the PyAutoGUI module to manipulate keyboard input

import pyautogui
# Sending a String from the Keyboard
pyautogui.click(100, 100)  # put file editor in focus
pyautogui.typewrite('Hello world!')
pyautogui.typewrite('!dlrow olleH', 0.25)

# Key Names
pyautogui.typewrite(['enter', 'a', 'b', 'left', 'left', 'X', 'Y'])

Update P7_controlKeyboard added key names