Yes you can make your animation as a variable
Solution:
system On variable "animation"=0>>> "player" set animation "Walk" or "Run"
system On variable "animation"=1>>> "player" set animation "Walk" or "Run"
So insert à New ligne
When I press A>> SYSTEM SET ANIMATION TO YOUR NUMBER SET VARIABLE