Exiting code block

Hi
I have been using Option+Tab on MacOS to exit code block
I realise that Options + Tab is cycling through code blocks. Options + Tab goes forward and Options + Shift + Tab goes backward.

I have also used ESC key in the past and then clicking Enter at end of code block but I find it annoying.

How to exit code block the right way?

Thanks