ReadKey() input question [Answered]

{
    Console.ReadKey();
    points++;
    Console.WriteLine(points);

}
while (Console.ReadKey().Key != ConsoleKey.Escape);

This former does the points++ on first press, and every other as shown in picture while the following does it every time.
while (true)
{
    ConsoleKey key = Console.ReadKey().Key;
    if (key == ConsoleKey.Escape)
        break;

    score++;
    Console.WriteLine(score);
}

Why is that?
unknown.png
Was this page helpful?