Fix `custom tag` detect special key will delete too many words.