Use makeDefaultKeyEncoder() to create a custom key encoder. This function will be removed in a future version.