Don't automate it at all.

Tap your back arrow key (you did keep the arrow keys off of the DNP list right?) just before you hit your macro that does the charge and lightning bolt.