implement key listing and accepting

@stbenjam please review