apply global shortcut function.