The goal is to have a keyboard for example on a smartphone display but it’s connected to Linux via WiFi.
Not Bluetooth.
Does such a thing exist?
Once you're using wifi you're using the Internet's TCP/IP protocols anyway.