def key_press_event(self, key, guiEvent=None):
self._key = key<EOL>s = '<STR_LIT>'<EOL>event = KeyEvent(s, self, key, self._lastx, self._lasty, guiEvent=guiEvent)<EOL>self.callbacks.process(s, event)<EOL>
This method will be call all functions connected to the
'key_press_event' with a :class:`KeyEvent`