add key related RPC commands and specs for them