function splitAccessKey(entry: MenuBarMenu | MenuBarItem): readonly [
before: string,
key: string,
after: string
]; Splits an entry's label around its access key, to underline the key while accessKeyHints is true. Without an access key the whole label is before.