Keyboard macros aren't really disallowed directly, but absentee play is, so you can't use these macros to automate gameplay. If someone tries to engage you and you're unresponsive (because you've left an endless macro running and you're not controlling the game) you can get in trouble for that.