It takes 19 moves. Written out in full:
Up, Left, Down, Right, Up
Right, Right, Right, Up, Right
Down, Left, Up, Right, Right
Right, Right, Up, Left
In shorthand: U L D R U R3 U R / D L U R4 U L, where the number indicates how many times to repeat that direction.
The sequence is unforgiving about order — one wrong turn and the block ends up somewhere you cannot recover from, so it is worth restarting rather than improvising mid-run.