Is called an automation tool.
Like Powershell, or Microsoft Automate or Tosca, who can all run keystroke injection, but aren't flagged.