Remove unused function handleHotkey