Fix issue with deleting characters when deleting a key.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>