The T-shape is drawn on top of the yellow square overlay as one sprite. It is coded to run in a semi-transparent mode. This allows the user to draw the T-shape on the Scratch stage with the left/ right/ up/ down arrow keys. The overlay can be ON or OFF by pressing the Spacebar.If it was necessary to lift the pen, you could code the 'z' key for down and 'x' key for up. These instructions are given on the overlay.
The Spacebar is programmed to SHOW/ HIDE using a Boolean variable (True to see/ False to hide).To see how this is done, look inside at the Boolean script.