Numeric Keypad OK / Enter

I would like to set a bit in the PLC when the operator enters a value in a numeric entry with the pop up keypad and commits by pressing OK. I have tried a simple code
value = 1
if event.keyCode == event.VK_ENTER:
system.tag.writeToTag(‘Soy Blending/B80:1_15’, value)

but it seems OK on the keypad is different than the enter key. This works when i use the keyboard enter key.
Am I over thinking this??

Thanks

1 Like