All usual registration forms will contain a password edit and users has to be warned for the Caps Lock state. So it is pretty easy in C# to check this. The following line will do the magic.

if (Console.CapsLock)
{
    Console.WriteLine("CapsLock On!!!");
}

Happy C#…..