tearing my hair out

Hi all. I’m hoping someone has the magic answer for me. I’m fairly new to Unity but not to programming here’s what I want to do: perform different actions based on a key the user hits. Not real complicated is it? The question is, how do I read the keyboard without 101 if (Input.GetKey(each damn key)) statements. I want to structure the code with a switch statement switch(keypressed) case KeyCode.A : blah blah blah. All the code I’ve been searching here uses if statements for everything. Is this even possible?
Thanks in advance. Hopefully someone will take pity while I still have some hair left.

You can use Input.inputString.

–Eric

Thanks! I looked at that func but the manual seemed to indicate it was used for typing in text boxes in the Gui rather than a general keyboard input function. Thanks again.