title: How to use Console.readkey(); with if statements
body: <p>I'm trying to make a script that says either 1, 2, or 3 based on which of those numbers you press, but I don't know how to make the types the same,<code>Console.readkey();</code> doesn't want to give me an integer :/</p>
  
  <pre><code>int level = Console.ReadKey();
  
  switch ( level)
  {
      case 1:
          Console.WriteLine("1");
          break;
      case 2:
          Console.WriteLine("2");
          break;
      case 3:
          Console.WriteLine("3");
          break;
  }
  
  Console.ReadKey();
  </code></pre>