Implement `createKeyStream`