Change method call argument in AnimationPlayer from code

Godot Version

4.4

Question

I have an animation that calls the same function 5 times. Said function has 2 int arguments. How do I change these arguments for a specific call by code?

It has been awhile since I did it, but I did have an animation player where I changed the values on the keys. You have to get the animation and search the keys using the property name, and then change the value of the key.