I am using Linux Mint 18.2 and Android Studio 3.0. I started my avd nexus 5 oreo, it's running but not working computers keyboard. I couldn't write anything. Only when i can write something about hundred times try with mouse right and left click. It's silly. I check avd config.ini. Thats true and see hw.keyboard=yes.
I think it can not focus on the emulator window and so its not writing.