Help on how to use the IRremote

void loop()
{
 for(;;)
{

Blocks of code are ended with the opposing curly bracket '}'.

IR_code();

}

What are you trying to do here?

 } // Closes the switch
  delay(500);
    irrecv.resume(); // receive the next value
 }  // Closes the if
} // Closes the function
} // Not supposed to be here.

See comments.