如何使用变量作为属性标识符?

In my specific example, I am using the Control.ModifierKeys Property and have something like:

if (Keyboard.Modifiers == ModifierKeys.Shift)
{
    // some code
}

但是说我希望可以通过变量来更改“ Shift”,例如:

private string myKey = "Shift"
if (Keyboard.Modifiers == ModifierKeys.myKey)
{
    // some code
}

我将如何做到这一点?