Handle shortcuts from Mac native menus.