builds the entries of a menu, see Element.contextMenu and MenuBar
adds an item labeled label that calls action when it is clicked
adds an item labeled label with the keyboard shortcut, like mod+s, which a menu bar registers
mod+s
adds a line between items
adds a submenu labeled label, it opens when the pointer is over it