I have a class and I would like to capture a keystroke. I know there are events in a WinForm application for keypresses. I want my class to be able to capture a keystroke, without using WinForms. I know I can create a keyboard hook, but I would prefer not to use that method, as it involves importing other Windows libraries and I would like this to work under Mono, as well as Windows. All I need is the ASCII code of the key pressed. I don't need to capture modifiers, such as ctrl, alt, shift, etc...
Any suggestions?