When trying to delete keys from a layered action in the viewport using ALT+I and no keyingset is set, no keys would be deleted. That is because the code hasn't been updated to work with layered actions yet. The fix is to check if the action is layered and iterate the FCurves depending on how they are stored. For this to work nicely I had to extract the function `delete_key_fcurve`. Pull Request: https://projects.blender.org/blender/blender/pulls/124619