code: def mark(key: str):
      """
      Mark the function with the key code so it can be handled in the register
      """
  
      def decorator(func):
          handle = getattr(func, "handle_key", [])
          handle += [key]
          setattr(func, "handle_key", handle)
          return func
  
      return decorator
  
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 a global function with example usage: mark(key) and returns: decorator, func