check whether key is vaild in parseKey()