How to pass to next rem from a code block?

When I press ESC in a code block, cursor is lost. I want to pass to next rem but I should click with my mouse everytime. Is there a faster way to pass to next rem without using mouse?