def isF4Pressed(self): return (GRXCom.getKeyPressValue() == 40)
def isF2Pressed(self): return (GRXCom.getKeyPressValue() == 16)
def isF3Pressed(self): return (GRXCom.getKeyPressValue() == 24)
def getKeyPressValue(self): # F1-4 return {0:0, 8:1, 16:2, 24:3, 40:4}[GRXCom.getKeyPressValue()]