bug fix for keys.js

https://github.com/substack/dnode-protocol/issues/13