What exactly are you trying, and what iOS version are you using? Both the Escape key and Ctrl-[ worked correctly for me when I tried it in a notebook in the latest iOS 13 beta. In iOS 12.2, the Escape key worked a few times, then stopped inserting at some point. But they are working for me.