cursor visual advice

I have seen that ASL allows you to send a visual signal indicating where the cursor arrow is, with a few circles, when you press the control button.

How can this be incorporated into a module?