Improve keyboard input and output in windows

- input: reads the keyboard input the same regardless of keyboard language
- output: outputs correct characters regardless of keyboard language. now outputs arbitrary characters in any language (this may depend on the target application)