Not sure if it is what you mean but if I create a code block there is no way other than clicking away from the block to stop editing it!
And from there, if I want to continue adding items in the document, it is simply impossible to create a new item after the code block.