It's a menu with multiple pages. You store all menu items in an array and display only several of them at any time. With page number (stored in global variable) and key number (menu handler argument) you can retrieve item index and perform adequate operations.