I was looking to make a keyboard command that would enable me to hit the "6" key with the "e" key, I'm looking for a program that I could change easily, and add additional keyboard commands when I need to, I've tried AppleScript and Automator but I couldn't find out how to do it.
The AppleScript code that I've written was
tell application "System Events"
if keystroke "e" then key code "22"
If anyone can provide some insight into this I would really appreciate it.