How to leave an LED on

Thanks for the help. Hopefully I can figure this out. Kinda confused cos I'm used to programming 8051s on Silicon Labs.