3 button menu for 16x2 LCD - help needed

I was thinking about using some variables to register if (enter/exit) button is either in Enter or Exit mode, i.e. when I press button to enter menu item to scroll options it will not only record that button was pressed (like it is now), but also that menu is in 'Enter' mode. Next time I press the button it can't go into 'Enter' mode again, so it has to go into 'Exit' mode resetting 'Enter' variable to be used next time. Something like flip-flop.