I would like the Escape button on my keyboard to trigger the Android BackButton on each Emulator by default. This can be achieved by pressing the button Hardware Input.

However, when Android Studio restarts, the setting Hardware Input is disabled - and the button "Hardware Input" needs to be pressed again. (Otherwise, the emulator window disappears when the Escape button is pressed).
I checked this answer and verified the setting
hw.keyboard=yes
in the file
~/.android/avd//config.ini
But still, when I restart Android Studio, hardware input to each Emulator is disabled by default.