to turn off line-buffering, and read input one character at a time with ReadConsoleInput, and just discard unwanted characters.
I've never done this: but if you want to be tricky, you can then useWriteConsoleInput to reload the input buffer with the desired input and use std::cin to read the characters normally.