diff --git a/src/Ryujinx.Input/Assigner/KeyboardKeyAssigner.cs b/src/Ryujinx.Input/Assigner/KeyboardKeyAssigner.cs index c66812ba0..0f1db63dd 100644 --- a/src/Ryujinx.Input/Assigner/KeyboardKeyAssigner.cs +++ b/src/Ryujinx.Input/Assigner/KeyboardKeyAssigner.cs @@ -28,7 +28,7 @@ namespace Ryujinx.Input.Assigner public bool ShouldCancel() { - return _keyboardState.IsPressed(Key.Escape); + return _keyboardState?.IsPressed(Key.Escape) == true; } public ButtonValue? GetPressedButton()