Added terminal_get_key