You could also create an always-on-top window with a couple of buttons that sits next to your unit frames and routes the appropriate keystrokes. It looks like AHK comes with all of the functionality you'd need.