Add hook to the keyframe key_name.

def add_hook(self, key_name, hook_name, hook_dict):
        """Add hook to the keyframe key_name."""
        kf = self.dct[key_name]
        if 'hooks' not in kf:
            kf['hooks'] = {}
        kf['hooks'][str(hook_name)] = hook_dict