Fix sample code on README.md. key() to getKey()