Nested switch...case

If I understand correctly you want a new switch...case after displaying a sub menu in your case '4'. Is that right ?

If so then you will need to read the keyboard again in case '4' and assign the input to a different variable. You currently have only one keypad.getKey in your code.