Press X to create a sand pixel at your selection.

Press Z to create a water pixel at your selection.

Use the arrow keys to move your selection.