Combine send-keys calls to reduce flickering