First I would read all button input at once. Debounce and then decide what to do.
This is like a state machine coding and you will not loose any keypress, especially if it is interrupt driven. Or if you do not want interrupts, then a tight loop can do the job just fine.
Spaghetti coding unfortunately leads to such results.
Ioannis
Bookmarks