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

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

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

	}
}

void motorStop(){ 
	
	if (ArduinoStateMachine.isInState(MotorTest)){
		digitalWrite(ledPin, !digitalRead(ledPin)); //toggle led to show the motor just rotated
		ArduinoStateMachine.immediateTransitionTo(Standby); //TODO: might not be safe; will always transfer to Standby, even if motor is not running?
															//UPDATE: Fixed, now checking if in state where motor can run (maybe add other states where motor might run?)
	}
}
// Taking care of some special events.
void keypadEvent(KeypadEvent key){
