"esc" command in a macro

Is there a macro string command riproduces the “esc” command from keyboard?
Thank you

Hi @fn_a,

Use !.


– Dale

Thank you @dale,
I tried it but I don’t get the desired result.
If you see the attached video, I can select each object individually, but when I change object remains on previous one the control arrow (Visualarq). For delete the arrow usually I need to click two time esc key.
select macro
Do you have any solutions about It?
Thank you in advance