Duplicate of C# Key Checking. Thread closed.