Elpato0_AMA_Processing/Key_pressed/Key_pressed.pde
  
// Click on the image to give it focus,
// and then press any key.

int value = 0;

void draw() {
  fill(value);
  rect(25, 25, 50, 50);
}

void keyPressed() {
  if (value == 1) {
    value = 255;
  } else {
    value = 0;
  }
}