You can use Perform Script to perform the script. You don't even need to put the focus on the button. This may require a "tree" of If,else if, else branches to determine which script to perform.
An alternative might be to remove the button formatting and use OnObjectEnter as a script trigger. Then Go to Object should trip the script trigger when it puts the focus into the field.