This thread may be of interest. It provides details on how the keys are mapped in mainline Linux.
P.S. I got myself a Droid 4, but not for Sailfish nor Android