Open AVD Manager, Click Show on disk " option, Edit the file from the opened directory, find config.ini file from the opened directory, find config and set it to hw.mainKeys config and set it to Yes".
hw.mainKeys = yes
Save the file and restart AVD.
See screenshots below for more details.

Vivek source share