I don't think your original code is possible. RegisterHotkey doesn't recognize the ctrl key being pressed after the first event, and all of the workarounds that I can think of that might emulate the key being re-pressed don't work