title: How do I convert a Console.Readkey to an int c#
body: <p>I am trying to convert a user input key to an int, the user will be entering a number between 1 and 6.</p>
  <p>This is what i have so far sitting inside a method, its not working, yet throwing a format exception was unhandled.</p>
  <pre><code>        var UserInput = Console.ReadKey();
  
  
  
          var Bowl = int.Parse(UserInput.ToString());
  
          Console.WriteLine(Bowl);
  
         if (Bowl == 5)
          {
              Console.WriteLine(&quot;OUT!!!!&quot;);
          }
          else
          {
              GenerateResult();
          }
  
      }
  </code></pre>