Easiest would be to have LED1 blink using a timer interrupt. Then it will simply blink, pretty much regardless of what else you're doing.
Then in loop() you can just poll for a keypress to light up LED2.
Easiest would be to have LED1 blink using a timer interrupt. Then it will simply blink, pretty much regardless of what else you're doing.
Then in loop() you can just poll for a keypress to light up LED2.