Per Gerry Schmitz's comment, you need to add an event to the sprite. Since it's every time you click it, the suggested onclick event is the obvious choice. But how?
You may wish to start this tutorial from scratch, but here's a direct link to the event hander part:
onclick Event[
^]
Note that although this uses a <button> element it can be pretty much any element at all.