The function keyHash was introduced in R2022b. And since you are working with R2020b, the function does not exist in your MATLAB library.
You will need to upgrade your version to R2022b or newer versions to use keyHash().
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!