Can you check behaviour when the keys plugin isn't installed? Ensure it doesn't throw an exception. 

Possibly include a dialog too (see the keys-on-map plugin for an example)