Merge.
Due to my schizophrenia, I've accidentally forked my own code. The other set of changes were found in another computer.
#!/usr/bin/env python3
import sys
sys.path.append('..')
from tuikit.core.events import KeypressEvent
x = KeypressEvent('tab', '\t', set(['shift', 'ctrl']))
print(repr(x))
print(x.mod_key())
x = KeypressEvent(None, 'c', set(['shift', 'ctrl']))
print(x.mod_key())