def handle_press_key_intent(self, message): key = message.data.get('Key') self.speak("Pressing %s" % key) pyautogui.keyDown(key) pyautogui.keyUp(key)