Raw Keyboard Input Events?

Is there a way to get raw keyboard input events? I know about the input mapping system with named bindings, I need something more direct without setting up bindings for every letter and number etc. I need something lower level that I can use for generic typing events, for debug and game purposes.

Or a way to get keyboard key states, like to find out if a specific key is being pressed or not.