Updated key.py to fix 

This fixed bug #4989 where delete was not deleting the key when `--yes` was passed