I beileve i finally have what i wanted in my AOE macro, got a little more complex then i first wanted. but here it is:

Ingame configuration:
Button 1: /target focustarget ----> Has to be this, as using /cast auto attack or assist to select the first target for me caused the switching not to work.
Button 2: /cast Magma Totem
Button 3: /castsequence reset=3 Flame shock, -
Button 4: /cast Fire Nova
Button 5: /cast Chain Lightning
Button 6: /cast Lava Burst
Button 7: /targetenemy

Keymap configuration:
Step 1: Don't advance for 1.0 sec > Keymap action Button 1, Button 2
Step 2: Don't advance for 1.5 sec > Keymap action Button 3
Step 3: Don't advance for 4.5 sec > Keymap action Button 4, Button 5, Button 6
Step 4: Advance on press ---------> Keymap action Button 7
Step 5: Don't advance for 1.5 sec > Keymap action Button 3
Step 6: Don't advance for 4.5 sec > Keymap action Button 4, Button 5, Button 6
Step 7: Advance on press ---------> Keymap action Button 7
Step 8: Advance on press ---------> Keymap action Button 7
Step 9: Advance on press ---------> Mapped Key step action: Set to: Step 2

Might be wondering why it repeats it self, but well i found that on the first press of /targetenemy it would change, but then on the second it would not, so on the second it had to be pressed twice. and the repeat.

Thank you for your suggestions, should help me a lot on the trash in my current runs