p for anything you chose. s for square and w for triangle. You can do forever for when it asks you for how many. i for sin wave! Space to clear.
I More cool projects at https://scratch.mit.edu/studios/4638548/