How can I draw a spline drawn by the player's movements?

Therefore, the top “row” of commands only executes once, and then it is the bottom row that activates every 0.5 seconds. Do I have that right?