How do I make a character move by teleporting to a spot with the press of a button

What I want to achieve is character movent that teleports the character by clicking W,A,S,D. I have 4 tiles and I want the character to move or teleport to the tile that is assigned to each key(If you press ‘A’ key the character moves to the left tile). Think of it as a chess board where you move a pawn by pressing W,A,S,D through each square.

I have been trying to get it to work but I’m not very skilled in programming and want to figure out how to make it work. Thanks in advance.

you could just teleport your character a set distance in the direction you want or you could get a point x units in the direction then find the tile that is closest and set the character location to the tiles location.

MyCharacter->SetWorldLocation(desiredTile->GetWorldLocation())