We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey, I was just trying some stuff around with processing and ended up with a problem i cant find out why happens. The problem is that i get "Unexpected token void" on keyReleased in this simple code:
  boolean[] keys = new boolean[2];
  String hallo;
  int x = 40;
  int y = 40;
  void setup() {
    size(1200, 700); 
    textSize(20);
    background(0);
    keys[0] = false;
    keys[1] = false;
 }
  void draw() {
    if (keys[0]){
      hallo = "a";
      text(hallo, x, y);
      x += 10;
    }
    void keyPressed() { 
      if (key == 'a')
        keys[0] = true; 
      }
    void keyReleased() {  
      if (key == 'a')
        keys[0] = false;
      }
    }
            
Answers
if you use ctrl-t in the editor it'll indent your code nicely and can help you spot errors.
where does your draw() finish?