How to change top down template control scheme to WASD? (no blueprints)

Hello, I am rather new to the Unreal Engine 4 and I cannot figure out how to change the control scheme from Point and Click to move to pressing WASD to move in the top down template – looking around the internet hasn’t left me with much code to learn from or a solution of any kind. Any help with this would be much appreciated.

I know, it would probably be easier to use blueprints, but I understand they are much slower than C++ code, so I’d rather not use them.

I wrote this to the APlayerController.cpp you get with the top-down template (Remember to write the declare functions into the .h file)

void APlayerController::SetupInputComponent()
    {
    	// set up gameplay key bindings
    	Super::SetupInputComponent();
    
    
    	InputComponent->BindAxis("MoveForward", this, &APlayerController::MoveForward);
    	InputComponent->BindAxis("MoveRight", this, &APlayerController::MoveRight);
    	
    }
    
    
    void APlayerController::MoveForward(float x) {
    	//120.f for smooth Animations
    	if (abs(x) > 120.0f) {
    		FVector up = GetPawn()->GetActorLocation();
    		up.X += x;
    		UAIBlueprintHelperLibrary::SimpleMoveToLocation(this, up);
    	}
    }
    void APlayerController::MoveRight(float y) {
    	if (abs(y) > 120.0f) {
    		FVector right = GetPawn()->GetActorLocation();
    		right.Y += y;
    		UAIBlueprintHelperLibrary::SimpleMoveToLocation(this, right);
    	}
    }

You also have to change the project setting → Editor ->Input, to something like this:

285584-ue4input.png

NOTE: You can not move vertically with this setting
Also I do note that I am responding quire late, but it’s for other potential strugglers