Despite scouring stack overflow and other places, I can’t figure out how to simulate key presses. I’m using Mac 10.10.5. Most answers to this involve sending keys to an element, but my problem is that I have no element to send to; I’m trying to automate key presses for choosing (browsing) a file in the Finder window. Any help is much appreciated.