Remove wait_key.