Changes to adapt to Disable SoftKeys feature. Thanks to noiphone here.