extract getHotkeyAppendixAndRegister