private void SendKeyPressMessages(IInputState inputState) { foreach (var keyEvent in _keyPressEvents.Where(keyEvent => inputState.IsKeyPressed(keyEvent.Key))) { keyEvent.Send(inputState); } }