async function pasteItemWithKeyboard (client, type) {
  // Click on empty space in the file list to ensure focus
  await client.click(`.session-current .file-list.${type}`)
  await delay(1000)

  // Use Meta+V on Mac, Ctrl+V otherwise
  const isMac = process.platform === 'darwin'
  const modKey = isMac ? 'Meta' : 'Control'
  await client.keyboard.press(`${modKey}+v`)
  await delay(4000) // Increased delay for paste operation
}
Pastes an item using keyboard shortcuts

@param {Object} client - The Playwright client
@param {string} type - The type of file list ('local' or 'remote')