I'm pretty sure Godspear is asking how to setup a dual movement system, a 4 directional grid moving with WASD as well as the option to click on a location to pathfind to said location within the grid tile to tile.
Develop games in your browser. Powerful, performant & highly capable.