When Keeps are destroyed, they become ruins and can no longer attack. They otherwise function normally: the Policed Realm inside remains intact, and units can still enter/exit the ruins.
Additionally, the owner can choose to rebuild the Keep for half its initial building cost.