Also I found that sometimes (but not always) after doing this, the Enter key on the bluetooth keyboard has no effect in an X terminal even though it does have effect in an Emacs window. But Ctrl-J and Ctrl-M can generate Enter. I don't know why this sometimes (but not always) happens.