How to detect multiple keys down onkeydown event in wpf?

You should use key modifier in combination with your customized key

if ((Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt) // Is Alt key pressed
{
  if (Keyboard.IsKeyDown(Key.S) && Keyboard.IsKeyDown(Key.C))
  {
    // do something here
  }
 }

Leave a Comment