I solved the problem by applying this " Frozen keyboard input -" iBus "problems on Linux " described in: link
At first it says that there is an interaction between the iBUS daemon and Android Studio and that in some cases the IDE may stop responding to the keyboard or enter random things. This bug has already been reported for JetBrains and iBus.
In the link informs you the solution to this problem and run the code below before running Android Studio to force the iBus in synchronous mode.
$ IBUS_ENABLE_SYNC_MODE=1 ibus-daemon -xrd
Or run this other code to disable iBus for Android Studio:
$ XMODIFIERS= ./bin/studio.sh
Anyway ... I used the first one and it worked for me. I had tried everything, reinstall Android Studio, delete all the settings (Including create a new user, because in the root the inputs worked). I was already thinking about switching OS. I'm using Elementary OS 0.4.1 Loki
Maybe, in Ubuntu, to recover accentuation, it is only necessary to execute the command in the terminal:
ibus-daemon -drx
But in elementary OS I was not so lucky. You needed to do the following:
How do I resolve the Android Studio accent issue in elementary OS .
First, this is the problem of the elementary OS (or Linux you're using) and not Android Studio. So no use reinstalling , it will not solve!
Resolving ...
No elementary OS
Step 1: Install the "iBus QT4".
In a terminal:
sudo apt install ibus-qt4
Step 2: Open iBus
ibus-setup
Step 3: In the second tab, "Input Method", see if you have the option "Portuguese - Português (Brasil)".
Step 4: After closing the iBus, in the terminal type: < ibus-daemon -drx
Now take a test. This will solve the problem until the next reboot. To keep "4éva" running, you need to put the step 4 command at automatic startup (in the elementary OS).