Receiving and relaying data trough the Arduino.

Im new to the forum, and a newbie in programming, especially Arduino. So does anyone know if its possible to receive serial data and just pass it trough the Arduino trough the Rx Tx ports? I have been thinking about this in the context of receiving usb data from lets say a keyboard and then wirelessly transmit it to another Arduinos pins plugged into a computers usb port? So that you would in theory exchange the usb data cables with a Arduino to Arduino wireless transfer?

I know there is a lot of much easier ways to get a wireless keyboard, but the knowledge to do that exercise would be valuable in future projects.

Kapteinmoby:
if its possible to receive serial data and just pass it trough the Arduino trough the Rx Tx ports?

Yes. You can see a tutorial on it here:

Kapteinmoby:
I have been thinking about this in the context of receiving usb data from lets say a keyboard

You started by asking about serial data, which in this context I take to be UART. Now you're asking about USB data. What sort of a keyboard are you talking about?

Kapteinmoby:
wirelessly transmit it to another Arduinos pins plugged into a computers usb port? So that you would in theory exchange the usb data cables with a Arduino to Arduino wireless transfer?

I know there is a lot of much easier ways to get a wireless keyboard, but the knowledge to do that exercise would be valuable in future projects.

I think the best way to do this would be to connect the keyboard to an Arduino with Bluetooth capabilities, which would then communicate directly with the computer. So you cut out one Arduino.

That does require the right kind of system. The most common use of Bluetooth in the Arduino world is to just create a wireless serial port, which is not what you want. I'm pretty sure the boards with native Bluetooth capabilities on their primary microcontroller like the Nano 33 BLE can do this, but I'm not sure it's possible to do it with the Bluetooth modules like HC-05 that people often use in the Arduino world. That said, I actually do see an instructable that does exactly what you want with the HC-05:

but the way it works is by having an application running on the PC that receives the serial input from Bluetooth and then does the keyboard emulation. That's kind of hacky.

USB uses a host (e.g. PC) and clients (devices like keyboard, memory stick etc).

Clients can not talk to each other. The Arduino is a client and your keyboard is a client so it will not work directly; you will need an USB host shield on top of the Arduino.