title: More efficient way of converting Keycode Alphas to integers
body: <p>In C#, specificially in a Unity Script, I can use the following line to know if a key (here, the number 1 on the keyboard, non-keypad) has been pressed in the last frame.</p>
  
  <pre><code>if (Input.GetKeyDown(KeyCode.Alpha1))
  {
      MethodCall(1)
  }
  </code></pre>
  
  <p>Now in my game, I'd like the call the exact same method no matter which number is pressed, but use that number as a parameter, and I'd like all the numbers to work. So of course I could do this:</p>
  
  <pre><code>if (Input.GetKeyDown(KeyCode.Alpha1))
  {
      MethodCall(1)
  }
  if (Input.GetKeyDown(KeyCode.Alpha2))
  {
      MethodCall(2)
  }
  if (Input.GetKeyDown(KeyCode.Alpha3))
  {
      MethodCall(3)
  }
  // Etc
  </code></pre>
  
  <p>But This seems like a terribly inefficient way of processing this specific use case. </p>
  
  <p>I've thought about simply converting the key pressed into it's own char, then into a string, then parsing it as an int, but I still have to do a huge if to check if the key was at least one of the numbers.</p>
  
  <p>So what's the most efficient way, in code-length and in execution time if the answer wouldn't be the same, to do this specific task?</p>