Problem with 3*4 Keypad Again

I'd also like to be able to break the code up into sections as I've seen done before for example:

void loop(){

calibrate();
...
}

void calibrate(){
...
}

but if I reference a variable from calibrate in a different part of void loop then it says that the variable is not in scope.