title: c# console snake gets stuck on long key press
body: <p>I just started learning programming couple months ago and decided to do a console snake game. Everything works great expect for one thing. </p>
  
  <p>If my snake is going upwards and I press down arrow <strong>and keep it pressed</strong>, my snake just stops and stays stopped even awhile after I stop pressing the button. </p>
  
  <p>Same thing happens if my snake is going right and I press right arrow too long, I lose control for some time(but snake does not stop). It happens for every way(left,right,up,down). </p>
  
  <p>I tried to compare the cki to another ConsoleKeyInfo with slight delay between them, but it doesn't matter. If I keep the key pressed, my program just stays that spot and updates for a key. (atleast I think thats the problem)</p>
  
  <p><strong>Is this a "feature" of the Console.ReadKey or is there some way arount this?</strong></p>
  
  <p>Keep in mind, that I just started so I don't know about the advanced stuff, yet.</p>
  
  <p>Everything works flawless as long as I don't keep the key pressed more than 1 sec.</p>
  
  <pre><code>   public void LiikutaMato() //movesnake
      {
  
          if (Console.KeyAvailable)
          {
                  ConsoleKeyInfo cki;
                  cki = Console.ReadKey(true); // &lt;-- I believe this is where it gets stuck 
  
      }
  </code></pre>