async fn copy_keys( state: &AppState, source_window_id: &str, target_window_id: &str, keys: &[&str], ) -> Vec<Event>