Merge pull request #134 from fantasy86/master

On Windows use Virtual Key Codes instead of _getch()  for more reasonable keyboard input interpretation
fix issue #140 #141 : Windows console output codepage to java charset: prefer 'msNNN' to 'cpNNN'.