See the documentation for self.add_keydown.

def add_keyup(self, actions, **kwargs):
        """See the documentation for self.add_keydown."""
        return self.add_handler(pygame.KEYUP, actions, **kwargs)