Reset terminal setting to orignal values after entering keys via stdin