How can i get the exact value of a variable into a keycode???

I am making a keyboard that changes sprites when the corresponding key is pressed and i have each key has the exact name of the keycode i want to use to check if the key is pressed. How do i have it so that the name of an object and be used in a input.getkey: example: if(Input.GetKeyDown(KeyCode.(keys*.name)))*

JK I FIGURED IT OUR THANKS FOR NITHING