Spice simulation of switch

I have very limited experience with SPICE simulations and I am embarrassed to ask this trivial question: is there a way to simulate a switch that turns on and off at predetermined times? In QUCS, the switch symbol allows one to do exactly that.

From my understanding of SPICE, voltage controlled switches are fundamental entities, and I assume QUCS’s switches are just that, a voltage controlled switch with a pulsed voltage source.

Is there a way to do that in KiCad?

Oops, I missed this post.