Windows.UI.Xaml.Input.KeyRoutedEventArgs
June 20, 2025 ยท View on GitHub
-description
Provides event data for the KeyUp and KeyDown routed events.
-remarks
Button input is mapped to different key values for various devices.
This table provides the mapping detail for game pad and remote devices.
| Button | Key value | OriginalKey value |
|---|---|---|
![]() | Space | GamepadA or NavigationAccept |
![]() | Escape | GamepadB or NavigationCancel |
![]() | GamepadX | GamepadX |
![]() | GamepadY | GamepadY |
![]() | Left/Right/Up/Down | GamepadDPadUp/Down/Left/Right |
![]() | GamepadLeftThumbstickButton/Up/Down/Left/Right or GamepadRightThumbstickButton/Up/Down/Left/Right | GamepadLeftThumbstickButton/Up/Down/Left/Right or GamepadRightThumbstickButton/Up/Down/Left/Right or NavigationUp/Down/Left/Right |
![]() | GamePadRightTrigger/LeftTrigger | GamePadRightTrigger/LeftTrigger |
![]() | GamePadRightShoulder/LeftShoulder | GamePadRightShoulder/LeftShoulder |
![]() | GamepadMenu | GamepadMenu or NavigationMenu |
![]() | GamepadView | GamepadView or NavigationView |
Version history
| Windows version | SDK version | Value added |
|---|---|---|
| 1607 | 14393 | DeviceId |








