added terminfo keys verification