Keys remember whether to use deprecated syntax

and the deprecated key handler registers itself with the base key type
LMS-2752
pardon my ignorance—does including this line outside the class guarantee it's always going to be set for this class?  my instinct suggests that this is the sort of thing we'd want to set in some higher-level `__init__.py` file, but I actually don't think I know the full details of how this works