If you want capture all key presses, then simply register a callback for viz.KEYDOWN_EVENT and viz.KEYUP_EVENT.
You can also use the viz.key.isDown() function to manually query whether a specific key is down. Set the immediate parameter to True to query the physical keyboard, instead of using the last known value.
|