تعذر معرفة هل تم ضغط المفتاح وذلك في حالة عدم احتواء التطبيق على وحدة تحكم أو في حالة إعادة توجيه إدخال وحدة التحكم من ملف أم لا. جرب Console.In.Peek.
Click to search this error in Google
English version
Cannot see if a key has been pressed when either application does not have a console or when console input has been redirected from a file. Try Console.In.Peek.