change data type of getchar() input from chtype to wchar_t. Still doesn’t read arrow keys, though.