class_docstr: Metaclass that adds the key handlers to the class
code: def __new__(cls, name, bases, attrs):
      new_cls = super().__new__(cls, name, bases, attrs)
      if not hasattr(new_cls, "key_handler"):
          setattr(new_cls, "key_handler", {})
      setattr(new_cls, "handle_input", KeyHandler.handle_input)
  
      for value in attrs.values():
          handled_keys = getattr(value, "handle_key", [])
          for key in handled_keys:
              new_cls.key_handler[key] = value
      return new_cls
  
file_path: accelerate/src/accelerate/commands/menu/input.py
imports: from typing import List
  from .keymap import KEYMAP, get_character
label_desc: Use image node_id 1 for calling the KeyHandler obj's underlying member method code with example usage: obj.__new__(cls, name, bases, attrs) and returns: new_cls