Implement streamKeys function