show last string in history and log on history or keyboard appear