WASD or arrow keys to move the pen. Hold space or click and hold to stop drawing. You can change the size of the pen with the "Pen Size" variable. If the "Pen Size" variable is 0, it means that it's 1.
Credit to @maxmuffy for the project "Drawing Machine".