I have seen the same message on the I Love Automation Discord server, and assume you are the same person. If I'm wrong, please correct me.
But I remember that the OP of that message mentioned their flow is all about extracting data from a PDF file, and then writing it to Excel and a SQL database. If that is the case, there is no UI automation involved here. All of these can be done with native PAD actions in the background: there are actions to read a PDF file without opening it visibly (under the "PDF" actions group), there are also actions to interact with Excel and write data to it without visibly opening the Excel app (via the "Excel" actions group), as well as writing to a database (under the "Database" actions group).
So, I really don't see why you would even need any UI automation here, not to mention the use of Send keys. Can you please elaborate on why and where exactly in your flow you're using it?
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.