(need help) Swipe left and right for mobile game

So Im trying to make an infinite runner for mobile. I watched UE4 tutorials to make it. But I have a problem… I want to make it so when you swipe left or right the character jumps lanes. The tutorial doesn’t show anything like that. The best example for what I mean is like the app “subway surfers”.

This code will detect if you are swiping left or right and up or down:

Use that to tell yourcharacter what to do

Awesome thanks

No problem.