HowTo: Listening to Keyboard Events and Handling Shortcuts in .NET MAUI

While working on a .NET MAUI app which has a strong focus on desktop platforms, I needed a way to listen to keyboard events and handle shortcuts and key combinations. Built-in to MAUI there are Keyboard Accelerators which can be used to bind commands to MenuFlyoutItems.…