Move the cursor with the D-pad. Press A to interact with sand, select a rail item, or focus the nozzle. While the nozzle is selected, left and right move it, up and down tilt it, A toggles spray, and B returns to the cursor.
Mouse/touch can still drag directly in the sandbox.