How to make the LED stay turned on/off after I release the button switch

Hello everyone, I'm new to the programming Arduino boards, and I was interested in how to make the LED stay turned on/off after I release the button switch (as the name of the topic stands)? Can I change the base code from link (https://www.arduino.cc/en/Tutorial/Button) to do this,and if so how?
I apologize if there are mistakes in my typing, English is not my native language. Thanks in advance! :smiley:

ieee488:
https://www.arduino.cc/en/Tutorial/StateChangeDetection

Thank you! :slight_smile: