Converting momentary button presses to states
simulate this circuit &ndash; Schematic created using CircuitLab
Give that a try and see what happens.  It's assumed the inputs are low true, pulled up and debounced external to the schematic.