Log turn with the correct key
Remove debugging print
Fix typo in writing closing return
Unfocus text input on popup closing to dismiss keyboard