Filters messages based on keywords