space to clear a to put down pen z to pick up pen arrows to turn l to turn upside down code from a library book (computer coding for kids) I copied down and changed slightly