fix "key" example function in readme