diff --git a/src/khoj/processor/operator/operator_environment_computer.py b/src/khoj/processor/operator/operator_environment_computer.py index 59062017..b6d015b3 100644 --- a/src/khoj/processor/operator/operator_environment_computer.py +++ b/src/khoj/processor/operator/operator_environment_computer.py @@ -232,7 +232,7 @@ class ComputerEnvironment(Environment): logger.debug(f"Action: {action.type} details: {output or error}") case "keypress": - mapped_keys = [self.CUA_KEY_TO_PYAUTOGUI_KEY.get(k.lower(), k) for k in action.keys] + mapped_keys = [self.CUA_KEY_TO_PYAUTOGUI_KEY.get(k.lower(), k.lower()) for k in action.keys] key_string = "N/A" if not mapped_keys: error = "Keypress action requires at least one key"