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

**URL:** <https://forums.unrealengine.com/t/how-to-change-top-down-template-control-scheme-to-wasd-no-blueprints/387588>\
**Category:** Blueprint\
**Tags:** top-down-template, unreal-engine, UE4, question, CPP\
**Created:** [March 11, 2017, 5:19am UTC](https://forums.unrealengine.com/t/how-to-change-top-down-template-control-scheme-to-wasd-no-blueprints/387588 "2017-03-11T05:19:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![redeem4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redeem4](https://forums.unrealengine.com/u/redeem4)\
**Post date:** [March 11, 2017, 5:19am UTC](https://forums.unrealengine.com/t/how-to-change-top-down-template-control-scheme-to-wasd-no-blueprints/387588/1 "2017-03-11T05:19:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Togtja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Togtja](https://forums.unrealengine.com/u/Togtja)\
**Post date:** [August 22, 2019, 5:36pm UTC](https://forums.unrealengine.com/t/how-to-change-top-down-template-control-scheme-to-wasd-no-blueprints/387588/2 "2019-08-22T17:36:23Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/9/38996742ef9c0e05ea5f9c101f72ce7cc4493f55.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
