How can I have a workflow hide the keyboard if the editor text is focused?

I have a script that focuses a section and you have to put the caret in the section you want to focus. I want the keyboard to hide though.