MPR121 touch sensor and LEDs

Hi my name is V. Magnusson and I am new to Arduino. I am working on a Led strip project but first I am making a test with MPR121 touch sensor turning on two LEDs. My problem is …This code turns the led ON when I touch but keeps them ON until I touch again. I want the LEDs to turn off when my finger goes off the touch pad. I can´t seams to find touch pad value to work with!!

void loop() {

currtouched = cap.touched();

for (uint16_t i=0; i<12; i++) {
// it if is touched and wasnt touched before, alert!
if ((currtouched & _BV(i)) && !(lasttouched & _BV(i)) ) {
Serial.print(i); Serial.println(" touched");
if((i == 0) && bSendSerial){
digitalWrite(11,LOW);
bSendSerial = false;

}
else if (i == 0) {
digitalWrite(11,HIGH);
bSendSerial = true;

}
if((i == 1) && bSendSerial){
digitalWrite(12,LOW);
bSendSerial = false;

}
else if (i == 1) {
digitalWrite(12,HIGH);
bSendSerial = true;

}

}
// if it was touched and now isnt, alert!
if (!(currtouched & _BV(i)) && (lasttouched & _BV(i)) ) {
Serial.print(i); Serial.println(" released");
}
}

// reset our state
lasttouched = currtouched;

// comment out this line for detailed data from the sensor!
return;

// comment out this line for detailed data from the sensor!
return;

// debugging info, what
Serial.print("\t\t\t\t\t\t\t\t\t\t\t\t\t 0x"); Serial.println(cap.touched(), HEX);
Serial.print(“Filt: “);
for (uint8_t i=0; i<12; i++) {
Serial.print(cap.filteredData(i)); Serial.print(”\t”);
}
Serial.println();
Serial.print(“Base: “);
for (uint8_t i=0; i<12; i++) {
Serial.print(cap.baselineData(i)); Serial.print(”\t”);
}
Serial.println();

// put a delay so it isn’t overwhelming
delay(100);
}

Where did you get that snippet?

You will have an order of magnitude more look posting snippets at http://snippets-r-us.com than you will posting them here.

The comments in your code tell you EXACTLY what it is doing. If that is not what you want, why did you write (or leave) the code that way?