I’m not sure if there is a way to use it like how you’ve explained, but that’s because I’ve not fiddled around with it much. If you go digging a little bit you should hopefully find what you need in this article.
For detecting the word in the TextBox you can use string:find
local Thestring = "I want the orange candy!"
Thestring = Thestring:lower()
if Thestring:find("orange") then
print("There's orange!")
end
For changing the color of a word you can use RichText, a property of TextLabel, TextButton, or TextBox and edit the color from there. (See the article for more information.)