Implement the keyword management logic