The input field shouldn't disappear after typing a word. That way you have to press Enter twice for each word which is tedious. You could even check for a match after every key stroke so you wouldn't have to press Enter at all.
It doesn't seem like there is a point in disabling the input field. The numbers you press to select units for production don't conflict with the words you type to destroy units.