int status;
 const int LED =8;
const int key =4;
void setup() {
  // put your setup code here, to run once:
pinMode(LED, OUTPUT);
pinMode(key, INPUT);

}

void loop() {
  // put your main code here, to run repeatedly:
status=digitalRead(key);
digitalWrite(LED,status);
}