Convert hotkeys to using cond_wait/cond_signal