The Racer is not very interesting if it just stays in one place the whole time. We need to get it moving forward! The process will be very similar to our code for getting the Racer to turn. We just need to use a different kind of movement and the up arrow.
This block is a bit different than what we used on other challenges. It moves the sprite 10 steps in the direction that the sprite is facing. This is why it's important that your sprite faces right, otherwise the movement will look weird. You can find the "move 10 steps" block in the dark blue "motion" section.
We don't want the motion to just happen once – we want it to repeat. To repeat code, we need to add a loop. Add a forever loop to keep your racer moving. Don't worry, we'll control the turn in the next step. You can find the forever loop in the orange "control" section.
It's great that the movement repeats, but the racer shouldn't turn automatically – it should only turn when we press down the up arrow key. This kind of functionality means our code has to make a decision.
If we want our code to make decisions, we need to use an if-statement. You can find the "if __ then"-statement in the orange "control" section.
If-statements only work if they have a condition that tells them when to run. A condition is a statement that boils down to "true" or "false". In this case, we can use a sensing condition that checks whether or not a key is pressed. We need to change the key in that sensing block to the "up arrow key".