Added an internal catch to prevent registered hotkeys from disappearing.