How to get arduino to put input values from keypad into an array.

Working on a code that will lock keys in a box and unlock it using a breathalyzer. In order for this box to be personal to the user we are using a 4x4 membrane switch module keypad, but are having trouble getting the values to be read into an array. The arduino skips all loops and just does print statements. Here is the code:

#include <Keypad.h> //using the keypad library
#include <LiquidCrystal.h> //using the LCD display library

LiquidCrystal lcd(13, 14, 15, 16, 17, 18); //the pins the LCD screen will be connected to

const byte ROWS = 4; //include four rows of keypad
const byte COLS = 4; //indclude four cols of keypad

char keys[ROWS][COLS] = {
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}
};

int input[4] ={0};
int expected[4] ={0};
int i;
byte rowPins[ROWS] = {9,8,7,6}; //connect to the row pins of keypad
byte colPins[COLS] = {5,4,3,2}; //connent to the column pins of keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); //create the keypad

double greenPIN=10 , yellowPIN=11, redPIN=12;
int solenoidPin = 1; //connect motor pin to code
int pin[4] ={0};

void setup() { // put your setup code here, to run once:
Serial.begin(9600); //start code
digitalWrite(solenoidPin, OUTPUT); //the solenoid will be an output
digitalWrite(greenPIN, INPUT); //all breathalyzer pins will be input
digitalWrite(yellowPIN, INPUT); //all breathalyzer pins will be input
digitalWrite(redPIN, INPUT); //all breathalyzer pins will be input
lcd.begin(16,2); //begin the LCD screen with its dimensions
}

void loop() { // put your main code here, to run repeatedly:
BeginProcess(); //call on function
EnterPin(); //call on function
LockBox(); //call on function
Breathalyzer(); //call on function

}

void BeginProcess() //function to being the proccess of locking the box
{
char pound = keypad.getKey();
lcd.print("Press '#' to begin."); //first instruction to user starts process
if (pound == '#'){ //read the button they pressed to ensure they meant to start the process
lcd.print("Let's begin!");
}

if(pound != '#') //use if statement to see if they used right button using the 2D array location of pound sign
{
lcd.print("Please try again"); //if they do not press the pound sign exit the loop and start again
return;
}

}

void EnterPin() //function to get user to enter their pin
{
char pin = keypad.getKey();
lcd.print("Enter 4 digit code.\n"); // get user to enter a 4 digit code only they will know to lock/unlock the box

for (unsigned cursor =0; cursor < 4; cursor ++) {
int key = keypad.getKey();
input[cursor] = key;
}
}

void LockBox()
{

lcd.print("Place keys in box.\n"); //get the user to place their keys in the box
delay(5000); //delay instruction for 5 seconds before next step
lcd.print("Enter pin for confirmation.\n"); //get user to re enter their pin for confirmation
for (unsigned i=0; i<4; ++i){
if(expected != input*){*
* return false;*
* digitalWrite(solenoidPin, LOW); //do not lock the box*
* lcd.print("Error in Code.\nPlease retry.\n");*
* }*
if(expected == input*){*
* return true;*
* digitalWrite(solenoidPin, HIGH); //trigger the solenoid to lock itself*
* lcd.print("Code match. Box locked.\n"); //let the user know the box is now locked*
* }*
* }*
}
void Breathalyzer()
{
* lcd.print("Please follow ins.\non Breathalyzer.\n"); //when user comes back for keys this instruction will be displayedd*

* if(greenPIN == HIGH || yellowPIN == HIGH); //if statement to see if the green or yellow pin received a signal from the breathalyzer*
* {*
* lcd.print("Sober! \nEnter code.\n"); //get them to enter code to unlock box*
_ input = digitalRead(keys); //read in the code they entered
if(input == expected*) //if the code enterd matches the original code the box will open*
* {
digitalWrite(solenoidPin, LOW); //solenoid unlocks*

* lcd.print("Box open.\n"); //let user know they can retreive their keys*
* }
}
if(redPIN, HIGH); //condition if the red pin sends a signal*

* {
lcd.print("Drunk. Return\nin one hour\n");
}
}*_

if(greenPIN == HIGH || yellowPIN == HIGH); no ;
if(redPIN, HIGH); no ;

Use CTRL T to format your code.
Attach your sketch between code tags
[code]Paste your sketch here[/code]

Show us a good schematic & image of your circuit.
Posting images:
http://forum.arduino.cc/index.php?topic=519037.0