<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def keypress(self, size, key):
 """allow subclasses to intercept keystrokes"""

        key = self.__super.keypress(size, key)
        if key:
            key = self.unhandled_keys(size, key)
        return key