New-UDAutoComplete -OnEnter

I have a New-UDAutoComplete and I am trying the get the written value to be added when I press enter. I prefer Enter over clicking with the mouse or press “Down + Enter”

New-UDAutocomplete -Id Test -Label Test -OnLoadOptions {
$Body | Where-Object { $_ -match $Body } | ConvertTo-Json
} -OnEnter {
#Some code here
} -Multiple

Product: PowerShell Universal
Version: 4.2.0

Inside the OnEnter you can pass the value to a session variable or even choose to set it directly as a value in the other object.