To change your in-game name, look for the quill icon on the same panel as your current player name and click on it.
Now, type in your new name. You need to use the "Name changer" item to confirm the change. If you already have one, you'll be prompted to use it. If you don't, you'll be prompted to buy one for 27K Gold in the same name change menu.