I use a controller which I find easier to use than a keyboard and more effective if done properly with macros. Here's how:
As you see here, lay out your basic rotation X to start, Circle and than Triangle. On triangle we will make our macro. Make it like this:
Try to mirror all the other abilities for your SET 2 so you can hit other moves on the fly when this macro switches sets. You just want to change up the X, Square and Triangle moves to complete your set. Continue like such, substituting my abilities for whatever job your doing.
Macro will look like this:
Now, it's time for the 3rd SET, Ninja only really needs 3 SETS, so you can make 4 sets if your job rotation really needs it. But for Ninja I only need 3 before the DOTS start falling off and need recast.
The macro will look like this that will go back to SET 1.