as you can see in the picture below, the top is the player which spawns a actor (apple) then calls a custom event in the ai (update move to key). The ai is the bottom area, here we have the custom event with the input parameter of type actor, then we simply get the black board and update the key.
this is a extremely simplified example so you could add to this easily and modify it for your needs.
do note its also incomplete as i didn’t specify the key name to affect and i left the spawn location at 000.