Using 2 buttons to switch LED state

HI,
I would like to turn an LED on and off by pressing 2 buttons, not switches. e.G. If I press button , the LED should trun on,
I think it isn't possible with if, because the button must be pressed the time the LED should be turned on.
If I press it again, It should turn off. If I press B1 to turn it on, I would like to press B2 to turn it off for example.
Does anybody have a solution for this problem?

Kind regards

by pressing 2 buttons, not switches

How do you intend to sew the buttons onto the Arduino?

Does anybody have a solution for this problem?

The state change detection example shows how to determine that a switch has become pressed, or has become released. You can probably adapt that to deal with the buttons you have sewn on.