Drag the king two spaces in the desired direction; the rook will jump to its destination automatically.