Move to move forward when pressing left and right mouse button at the same time in c++?

I had the same problem when trying to implement @eldany.uy answer, what I did was change the BindKey for BindAction, and instead of doing the bindings on the BeginPlay, I did it on the SetupPlayerInputComponent. I edited my previous response, you can check there if that solves those issues.