Catch key errors.