need help with programing

This is my first time writing a program interface with Arduino. this code intend to turn on multiple LEDs at the same while some LEDs on the delay mode. here is what I had so far.

int ledPin12 = 12; // PC connected to digital pin 12
int inPin2 = 2; // pushbutton connected to digital pin 2
int val1 = 0; // variable to store the read value
int ledPin11 = 11; // Speakers connected to digital pin 11
int inPin3 = 3; // pushbutton connected to digital pin 3
int val2 = 0; //variable to store the read value

void setup()
{
pinMode(ledPin12, OUTPUT); // sets the digital pin 12 as output
pinMode(inPin2, INPUT); // sets the digital pin 2 as input to control a PC
pinMode(ledPin11, OUTPUT); // sets the digital pin 11 as output
pinMode(inPin3, INPUT); //sets the digital pin 3 as input to control speakers
}

void loop()
{
val1 = digitalRead(inPin2); // read the input pin from PC pin2
if (val1 == 1){
digitalWrite(ledPin12, HIGH); // sets the LED to the button’s value
delay(500);
digitalWrite(ledPin12, LOW);
}
val2 = digitalRead(inPin3); //read the input pin speaker pin3
if(val2 == 1){
digitalWrite(ledPin11, HIGH); //sets the LED to the button’s value
delay(5000);
digitalWrite(ledPin11, LOW);
}
}

The code above is light up one at a time which I dont want because of the delay. So I have to wait for a certain seconds to be able to press another LEDs.

It like I said I have no experince so whatever in programming. :’(

PLease help.

Thanks in advance.

Yes, Delay will stop the entire program. If you don’t want to stop the entire program look at the example: “Blink without delay”. You can find it under Examples==> Digital ==> Blink without delay