Challenge: Braking car
Make it so that you can start and stop the car with the keyboard.
Start the car!
Hint
draw = function() {
if (keyIsPressed && keyCode === ) {
;
} else {
;
}
};
The car object starts off at rest, with 0 velocity and 0 acceleration. Make it so that it accelerates when you
press the right arrow, but then the acceleration goes back to 0 when you release it.