MenuSelect

number MenuSelect(heapPtr event)

MenuSelect check to see if the menu has been activated (either by clicking or pressing ESC). If it has, the user can select an item from the menu. If an item is selected, it returns the index of the item. If not, it returns -1.