Represent keywords as a list in history