Magic Keyboard for iPad
Yes, it floats.
Background
The Magic Keyboard for iPad is similar to its desktop predecessor but features a trackpad. Its keys are backlit and use a scissor mechanism with 1 mm of key travel. It attaches magnetically to the iPad Pro or iPad Air, which sits above a cantilever that allows adjusting the viewing angle. Instead of a battery, it is powered by the iPad's magnetic Smart Connector. It also has a USB-C port on the hinge of the keyboard for recharging the iPad and freeing the USB-C port on the iPad itself for other accessories. It is compatible with the 11-inch iPad Pro 1st, 2nd and 3rd generation, the 12.9-inch iPad Pro 3rd, 4th and 5th generation, and the fourth-generation iPad Air. A white version was released on April 20, 2021. Apple released a modified Magic Keyboard in May 2021 to accommodate the slightly thicker 4th generation iPad Pro, which is also compatible with the previous Magic Keyboard, though has a tighter fit.