yes but only if you store the key both encrypted and as a hash. i just finished a tcl script that does this. the major procedures should help you.
take plain text key and hash, also encrypt this plain text key and store both in the same row as the form data you are saving (also encrypted).
populate a dropdown or whatever with plain text keys by decrypting the key column and inserting into the box. now you can select plain text keys to search for.
this requires an encrypt, decrypt, and hash routing that gets called every time you want to add, update, delete a record or show records but i notice no slowing though i am sure it exists at a microsecond level.
make sure your encryption comes from a standardized and respected source like openssl or similar so you can cbc with auto padding and auto IV creation. this way like words in the database are encrypted differently. this is also why you need to hash the key. otherwise it will encrypt differently and you wouldnt be able to search for anything.
in this way, a key get hashed and checked against other hashed values. try inserting a malicious group of words into a field and the wort that can happen is it gets hashed into a non-dangerous word.
if using tcl it also helps to use curly braces which should prevent problems to begin with