add item/group when pressing enter