Determine shortcut keys from menu strings