Copy and paste from screen works in Windows but not on Mac

I’ve written a small script to understand how copy and paste on a screen might work.
The script runs successfully with the expected results on a Windows 10 machine, but it does not work on my MacBook air running Mojave 10.14.6. There are no errors detected, but neither the copy or paste work on the Mac. After running the script, when I manually paste the clipboard, it contains whatever it contained before running the script.
On the Mac I’ve tried using both Keys.CONTROL and Keys.COMMAND. (Which is the correct one?)
Any ideas?

import org.openqa.selenium.Keys as Keys

WebUI.doubleClick(findTestObject(‘Page_tC Create/h1_Login’)) //double click text on a label to highlight it
WebUI.sendKeys(null, Keys.chord(Keys.CONTROL, ‘c’))‘Page_tC Create/input__username’))
WebUI.sendKeys(findTestObject(‘Page_tC Create/input__username’), Keys.chord(Keys.CONTROL, ‘v’)) //Paste the clipboard into the username text box

Command+C == Copy
Command+V == Paste

Anyone have an idea of a possible alternate for command+shift+v (paste and match style) on OSX?Control+shift+v does work on Windows, but not on Mac.

Yes, I understand that COMMAND+C and COMMAND+V are correct for OSX, but they do not work in Katalon.
In further searching I found this article which suggests these solutions.

  • Cut => control+delete, or control+K
  • Copy => control+insert
  • Paste => shift+insert, or control+Y

I have verified that control+insert works to copy, and shift+insert works for paste, but control+Y does not work in my Katalon environment.

Ctrl-Y REDO is the opposite of Ctrl-Z UNDO in most Windows apps, including Katalon.