private void SendKeyDownMessages(IInputState inputState) { foreach (var keyEvent in _keyDownEvents.Where(keyEvent => inputState.IsKeyDown(keyEvent.Key))) { keyEvent.Send(inputState); } }