improve the hotkey functions