I do not have much information on Arduino.To assign a keyboard macro is available arduino.
I do 7-8 key macro assignment.If this is how it can be done in a simple and cheap way if going on?
Are you talking about the IDE? I have not found macro functionality in the IDE. If you have a need for that, there are better editors like vi (Linux) and notepad++ (windows).