alternating f-curves

how can i make 2 alternating f-curves.

Something like this:
when i press left button play f-curve 1.
when i press right button and then left button play f-curve 2
and when i press right and then left button play f-curve 1

here the vid

anyone that could help?

Could anyone help

The nature of F-curves is that they work together and not separate, as of now the BGE doesn’t support playing just one F-curve at a time, you would need to either.

-Use Python to replicate the effect you want manually if it’s rotation or location-based or…
-Create two F-curve setups that are next to each other in the F-curve editor and use a property to control the frame the game is reading.