kad function to add key added