Using software keyboard in AOSP custom build emulator
I found a solution. I don't know if it is the best place to do such a modification, but I was able to edit the default emulator skin at

development/tools/emulator/skins/HVGA/hardware.ini


And set hw.keyboard=no there.