Move key selector to template

Modified https://github.com/lazlolazlolazlo/rc_openpgpjs/commit/d4a1b5632e494f5e15998d5645aaf02d0cce7a4a