"esc" command in a macro

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

Hi @fn_a,

Use !.

https://docs.mcneel.com/rhino/8/help/en-us/index.htm#information/rhinoscripting.htm

– 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