Triggers should always be placed as a top-event, as they run outside the usual loop. The Wait will not affect the "On tap" event.
A better mechanism is to put the On tap code in a Group, disabled by default. Then when your attack mode is triggered, run the Wait code, adding "Group enable", at the end to turn on the input tracking.
Disable the group again, when appropriate.