managed C++ is way different than traditional c++...so you may have to consult the .NET documentation...I'm sure there is a much more viable function for your purpose.
You could always use events, I'd use the KeyDown or KeyPress events. That would allow you to do the processing after the first key was pressed, and no more. Read up in the .NET documentation about those events.