Modifying getChar. Now it does not require ENTER after reading a char.