Updated key.py to fix 

This fixed bug #4989 where delete was not deleting the key when `--yes` was passed
Merge pull request #4990 from auser/patch-1

Updated key.py to fix isue #4989