I am trying to make a program using Processing JS that draws a space ship and then allows the user to control it using left and right arrows to turn it and z to make it accelerate. I have been using the `keyIsPressed` function like so 

```
keyIsPressed = function(){
    if(keyCode === 90){
        println("OK");
        ship.accelerate();
    }
};

```

but the ship does not move and nothing gets printed in by the `println();` when I press z so it must not be activating the function. Does anyone know how to fix this? here is a link to the full code <https://www.khanacademy.org/computer-programming/spin-off-of-project-asteroids-spaceship/4635808988463104>.