How do I detect keys pressed in C# (c++)?

what's the code/method for detecting a pressed key in visual c#
2 answers