Keyword spotting is one of important topics in speech recognition. The paper presents a model of keyword spotting and the training method of relevant keyword models and anti-words models, then we give a strategy of keyword spotting. Experiment indicates the strategy is effective.