Use correct getch function and set locale