Cool!
Sorry it took a while.
I think it would help if you change the names of the boolean variables so they more clearly explain the state of the "key".
So instead of "Key1LastState02", make it "key02WasOn" or something like that.
You could also hide the comparison with the threshold, like this.
boolean key02On = false;
...
key02On = (analogRead(A1) < threshold);
Then use "key02On" in your if statements.
As you expand this to more sensors, you probably will want to change these variables to be arrays, so you can do the same logic for each sensor reading in a for loop, rather than writing out effectively the same code many times.
I've got some questions about the 8 x 8. I'll post them in a minute.