How to save a file using GNU Nano?
You can exit by using (ctrl + o) not (shift + o)

Tip. In termux use vim instead. 
not because of "text editor wars" but it is painful to send ctrl and shift keys even with modified keyboards similar to hacker's keyboard