LCD Menu using DF Robot Lcd keypad shield

Hello there !

I am a hobbyist trying to make a lcd menu for home automation by using DF ROBOT LCD KEYPAD SHIELD
//Arduino_LCD_KeyPad_Shield__SKU__DFR0009_-DFRobot
See the attached file.
Aim: To Display and navigate the menu options by using SELECT, LEFT & RIGHT buttons
Operation: select the Menu by pressing "SELECT" button and to navigate press either Right or Left button.

The problems I am facing is :-

  1. Timing: Some time I have to press the button two or three times to navigate the Menu
  2. The menu navigation is erratic : It is not printing the options in a sequence like Menu1, Menu2......Menu6 but it is displaying it in random.

I need a guidance or suggestion to make it work Plz. note that I am newbie

Thanks in Advance.

lcd_menu.ino (3.61 KB)