Add keyBy to changes

Added 'keyBy' method to Collection.