Rework hotkeys manager, fix many issues on it