[Space] creates a random square and stops [Any] other key creates a random square and continues until you let go, or start pressing [Space]
a book I read about coding