def handle_hold_key_intent(self, message): key = message.data.get('Key') self.speak("Holding down %s key" % key) pyautogui.keyDown(key)