Buttons to save and open text file in processing 3

Maybe you have the wrong kind of button

you want to happen something only once on click not throughout

So the button shouldn’t have a on and off but just be clickable and reacting once