Implemented proper input handling in main_menu_state. Selected menu item is indicated.