private void GameWindowUpdateFrame(object sender, FrameEventArgs eventArgs) { var currentKeyboardState = Keyboard.GetState(); if (currentKeyboardState != _previousKeyboardState) { _inputHandler.NotifyInput(currentKeyboardState); } _previousKeyboardState = currentKeyboardState; }