I think you want a menu like the attached screen shot. You just move to a choice with up/down and select with a or b. The function takes a delimited string as input and returns the index selected.