Improved hotkey hook