As discussed in https://discourse.julialang.org/t/allow-escape-key-to-leave-shell-or-pkg-mode/23802 and also relates to (#19202)
It would be good to be able to choose between persistent and single execution REPL mode in a consistent manner.
My proposal is to have single mode character ( ?, ;, ] ) be single execution mode and meta + mode character be persistent mode.
Furthermore the possibility to get back to julia REPL with cursor mid-line with e.g. esc would also take account of inattention of users.