You may consider using a keyboard or macro utility.
I have been using one called Keyboard Express which will replay store keystrokes.
You can check it out here (I don't know if you are on Windows or Mac, this is for Windows):
There used to be a program called QuickKeys on the Mac but that was long ago and it was more or less flaky varying with OS updates. My experience with these sorts of programs is that they are not terribly reliable. Good for automating repetitive tasks, as long as they are low risk, non-critical tasks.