Level 21 solution, with R = right, L = left, U = up, D = down, and a number indicating repetitions:
R, D, L, U, L, D, R, U, R2, U, R3, U, L, D3, U3, R, D, L3, D, L2, D, L, U, R, D, R, U, L, D, R, U, L, D, R, D2, R, D2, R3, U2, D2, L2, U, L, D, R3, U4, R3
Bloxorz is a game where precision matters more than speed, and level 21 is a good example. The block is 1x2, so standing it upright versus lying flat changes which tiles you can cross and which switches you activate. Most failed attempts come from a single early move that puts the block in the wrong orientation several steps later.
If you go wrong partway through, restart rather than trying to recover. Because the level is essentially a single long dependency chain, a recovery is usually harder than a clean run, and memorising the sequence in chunks of about ten moves is far more effective than trying to hold all of it at once.