Would the question be how to set up the wasd to do those functions, how to apply those to your map and use them, or both? And is this going to be for 2D or for 3D?
Any additional specifics you provide may go a long way in solving your problem!
So since this is going to be in 3D, we can break this down into several parts.
First is turning. Assuming you are not going to have a player you are going to want to turn your camera/controller 90 degrees left or right depending on whether or not you press A or D, and your camera needs to turn 180 degrees if you press S. Check out this thread that accomplishes a similar goal:
A little bit harder, what you are going to need to do is teleport your character in the direction you want to go, if that movement is possible when you press W. This can be done with a set of nodal points you have placed around your map with conditions or something similar. Check out this non-Epic affiliated tutorial that gives a teleporter example: