onKeyPress doesn't work with TextEditor TextField

The following code doesn't work

TextField("", text: $text)
 .onKeyPress(.downArrow) {
    print("down")
    return .handled
 }

I tried to get onKeyPress to work as well with a TextField and found that it is working in the preview but not when running it on the device with the iOS keyboard.

onKeyPress doesn't work with TextEditor TextField
 
 
Q