how to store keyboard key code as a value in var c#

I would like to store key values into list or dictionary so I can simply change them if needed, when needed.

I am catching the key press like this, now.

if (e.Key == Key.D1)
            {
                if ((trackstatus[1].IsReserved == true) && (trackstatus[1].IsReady == true))
                { 
                    (alltimers[0] as stopwatch).SwitchOn();
                    trackstatus[1].IsReady = false;
                }
            }

Is there a way I can store that Key.D1 into some var like this and how, because sometimes I have more than 1 track and different Key bindings. Thanks in advance.

var something = Key.D1;
if (e.Key == something)
            {
                if ((trackstatus[1].IsReserved == true) && (trackstatus[1].IsReady == true))
                { 
                    (alltimers[0] as stopwatch).SwitchOn();
                    trackstatus[1].IsReady = false;
                }
            }