Aren't you mixing up key codes here? This can't possibly work. key is from key_queue, it's not a CTRL key mask.