Recognize word and activate a function block

how can recognize a word using blocks and this word can activate a function. some example?