Added input functional and getch(), trych() functions for input working.