How to change animation when multiple keys are pressed?

I’m new to game development, and have decided on UE4, for blueprints, as coding doesn’t really click with me, and I’m struggling to even understand blueprints right now, but that’s probably, well, because I’m new. Anyway, I’m just messing with the Engine, getting used to it, and right now I’m using Paper2D, and am wondering how I would set a animation to multiple keys, as in if I press the “D” key the character would move right, and I press “E” and “D”, I would move right, but with a different animation, and if I press just “E” I get another animation.
Thanks!

So in theory this should work.

I’m sure there’s a more efficient way of doing this, but this should at least get you started. Just hook up the “Play Animations” with your flipbook animations and see if it works.