 
 State Standby = State(standbyState);
 State Processing = State(processingState);
-State MotorTest = State(motorTestState);
+State MotorTest = State(motorStartState, motorTestState, motorStopState);
 
 FSM ArduinoStateMachine = FSM(Standby);
 

	}
}

void motorStop(){
	digitalWrite(ledPin, !digitalRead(ledPin));
}
// Taking care of some special events.
void keypadEvent(KeypadEvent key){

	delay(2000);
	ArduinoStateMachine.transitionTo(Standby);
}

void motorStartState(){
	digitalWrite(motorPin, HIGH);
}
void motorTestState(){
	
	//delay(1000);
	
	//ArduinoStateMachine.transitionTo(Standby);
	checkKeyboard();
}
void motorStopState(){
	digitalWrite(motorPin, LOW);
}

//function that reads does some debugging and show-off for the keyboard
