I am trying to make a simple menu.
My question is simple: Is there a way to detect if key is pressed directly from the keyboard? In such way, that even if the user has started typing something, if he presses "~" it would be detected and some action will follow?
I know that is not possible in the console. I could only use Console.ReadKey() but that accepts the whole character, and if its not '`' it is discarded. Possible fix could be to add that key to the string later, but that would require the first key to be "~" which is annoying.
That is why I need something to detect the keys as they are pressed. I hope you can help. Thanks.