[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, SetLastError = true)] public static extern int kbhit( );
Microsoft documentation: Link
Last updated 2 months ago