https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.uielement.onprocesskeyboardaccelerators?view=winrt-28000
UIElement.OnProcessKeyboardAccelerators Method (Windows.UI.Xaml) - Windows apps | Microsoft Learn
Called just before a keyboard shortcut (or accelerator) is processed in your app. Invoked whenever application code or internal processes call...
methodwindowsuixamlapps