Fixed use of Qt.Key_X instead of relying on text