Added getch() emulation for Unix-like OS