Grok Custom pattern

Hi, i am trying to pass a field and i cant understand . The word can be ( *DENIED* or *EXCEPTION* ). I try use ${WORD:action} but dont work. Someone can help me with this ?

%{WORD:action}, not ${WORD:action}.