Key
enumeration is not marked with Flags
and so cannot hold multiple values. And there is just one Key
property in that event args, so just one key. Hence, your if
can never be true because 3 of your &&
conditions are mutually exclusive.
What you can do instead is this:
if ((Keyboard.Modifiers == ModifierKeys.Control)
&& (Keyboard.IsKeyDown(Key.R))
&& (Keyboard.IsKeyDown(Key.S))
&& (Keyboard.IsKeyDown(Key.V))) {
}
Note that if you want to allow other modifier keys to be pressed at the same time (so, if you don't care if both ALT and CONTROL might be pressed together for example), then you should use
Keyboard.Modifiers.HasFlag(ModifierKeys.Control)
instead.