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