Keypressed P5js, js function and variable has to use your reference to the sketch.