Final attempt at fixing hotkey event.