Hi,
To disable a callback simply set the function to the value 0:
Code:
#Disable key board events
viz.callback(viz.KEYDOWN_EVENT,0)
Then to resume the callback set the function back to the original value:
Code:
viz.callback(viz.KEYDOWN_EVENT,onkeydown)