Hello,
well, you try to program a change-blindness experiment. You find some solutions here in the forum by conducting a search, e.g. Change Blindness - #13 by JensBoelte
Instead of creating an invisible box, you might consider to record the x-y coordinates of the mouse click and compare the recorded x-y coordinates later in the analysis process with expected ones.
Best wishes Jens