2 Button to 1 PWM output

Hello
That isn´t a real schematic.
Use a piece of paper and a pen.