Move with WASD.
Left-click to pick up a button, right-click to place it.
You can only move in a direction if you have the corresponding WASD button.