How to remap MacBook keys
I use Karabiner-Elements for this purpose. The W key on my keyboard is a bit finicky so I use Karabiner-Elements to get around this.

After installing Karabiner-Elements, create a new profile.



Then add mappings to this profile.



Finally, use the menu bar to switch between this profile and the default one.