         Serial.print("keys[");
         Serial.print(i);
         Serial.print("] = ");
-        Serial.print(keys[i]);
+        Serial.print(midiKeys[MANUAL_KEY_0 + i]);
         Serial.print("\n");
     }
 }

        percussionEnv.noteOff();
    }

    keys[key] = 0;
    updateTonewheels();
}



    // MIDI notes always have the high bit unset, but just in case.
    if (note & 0x80) {
        return;
    }

    midiKeys[note & 0x7f] = vel;
    if (note <= MANUAL_KEY_0 || note > MANUAL_KEY_61) {
        return;
    }

    updateTonewheels();

    if (++numKeysDown == 1 && midiControl[CC_PERCUSSION]) {
