# How do you edit keyboard commands?

**URL:** <https://forums.unrealengine.com/t/how-do-you-edit-keyboard-commands/287438>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 4, 2014, 10:07pm UTC](https://forums.unrealengine.com/t/how-do-you-edit-keyboard-commands/287438 "2014-07-04T22:07:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jae\_Dark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jae\_Dark](https://forums.unrealengine.com/u/Jae_Dark)\
**Post date:** [July 4, 2014, 10:07pm UTC](https://forums.unrealengine.com/t/how-do-you-edit-keyboard-commands/287438/1 "2014-07-04T22:07:54Z")

</div>

I would like to know how to edit several keys so that in the game the “w” key makes the player go forwards a set amount when hit, say 256 units, then stop. The opposite direction with the “s” key. I also would like to know how to make the “a” and “d” buttons turn the player 90 degrees left or right.

---

<div class="post-metadata">

**Author:** ![birdfreeyahoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birdfreeyahoo](https://forums.unrealengine.com/u/birdfreeyahoo)\
**Post date:** [July 4, 2014, 11:16pm UTC](https://forums.unrealengine.com/t/how-do-you-edit-keyboard-commands/287438/2 "2014-07-04T23:16:56Z")

</div>

Ok, let me explain that to you.  
In the editor click on Edit-\>Project Settings and then click input on the left side.  
There you can map your input.

Action Mapping is for command-like input (Jump, Shoot,…)  
Axis Input is for smoother input like walking, turning, etc.

You can assign a key to a command name and bind the events to a function in SetupPlayerInputComponent function in your Pawn / Character subclass.

There you can use W and S with your CharacterMovementComponent to walk, and A and D with a yaw rotation to turn around. You can find all that below.

If you are a complete starter or want a complete tutorial with examples, look here it helped me a lot:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Greetings
