Having a Button in Seeduino like a light switch

Hello, i have a school project right now, where we have to code in seeduino. I want to code a button, that stays in the state if you press it once. But for me it only stays in the “HIGH” state if you press it constantly. Is there any option to code a button, that you press it once and then it stays the state until you press it again, like a light switch?