code: def handle_update(self, action, params):
      
      _LOGGER.debug('Keypad: "%s" %s Action: %s Params: %s"' % (
                    self._keypad.name, self, action, params))
      ev_map = {
          Button._ACTION_PRESS: Button.Event.PRESSED,
          Button._ACTION_RELEASE: Button.Event.RELEASED
      }
      if action not in ev_map:
        _LOGGER.debug("Unknown action %d for button %d in keypad %d" % (
            action, self.number, self.keypad.name))
        return False
      self._dispatch_event(ev_map[action], {})
      return True
docs: Handle the specified action on this component.