Hangul Mealy Machine
added getch
input with getch