Many keyboard manufacturers have macro software, specifically Logitech. On most Logitech gaming keyboards (which can be as inexpensive as $20-30), they give you additional "blank" keys that you can assign macros, key presses, etc.
Additionally, you can download macro software and program key commands ahead of time. It's fairly simple.