Inserting a delay between additional actions

I'm trying to create a fairly complex macro in my audio editing software.
I need to enter record mode (F12) then select a specific track (opt+cmd+F to bring up a text box to write the track name in, type track name, then ENTER) then mute it (shift+m)
My problem is the shift+m command seems to come before the ENTER command, adding M to the track name and consequently nothing after F12 works.
I want to put a 2 sec delay before shift+M.

Is this possible?


looks like I've worked it out!