Thanks for playing! Yes, I found that out too. That bug comes from using the keys while the mouse is already on the previously placed tower. Lucky you!
My friend and I just beat the game, with infinite towers with this bug.
Hah! Excellent!