import pyautogui word_input = "hello" for i in range(0,len(word_input)): pyautogui.keyDown(str(word_input[i:(i+1)])) input()