Send keystroke (HIDkeyboard) via wifi or bt to another device

I hope s.o. can answer me the following question according to the wifi/bt functionality of the new ARDUINO NANO RP2040 CONNECT: I know that this board supports HIDkeyboard feature so i can connect a button to the board and when i press it, a predefined keystroke is transmitted to the device the arduino is connected with via usb. My question: is it also possible to send this keystroke wirelessly via bt/wifi to the device if it is connected to the same network (in case of wifi)? If so, could s.o. give me support how to write the sketch? Thx! Frank
Edit: if it is not possible with one board connected to the device via wifi, maybe it is possible with two boards connected via bt and one of them connected to the device via usb?

That would be possible using almost any Arduino.
To send via USB, use Serial.print.

To send via Wifi, BT etc. Start looking for example codes. Maybe even the IDE collection contains such code. If not, do a sweep in this forum. There are more than tons of topics where Wifi or BT is involved.

I'm not any wireless guy so no code in my folders.