Another thing to ask: How is your KEY wired up? You have it declared as an INPUT so it requires either a pull-up or pull-down resistor. Did you install one? An easier and more typical arrangement is to connect one end of a button to ground and the other to the arduino pin and then declare that pin as INPUT_PULLUP. It will read HIGH when not pressed and LOW when pressed.