I wonder if you can fit that into a mechanical keyboard's keycap.
The ARM core wouldn't be ideal for that though, because it would need a separate WiFi chip. Probably better just to use an ESP (ESP8266, ESP8285, ESP32-C3) that has WiFi (sometimes also BLE) on the silicon.
For an easier challenge, I wish there's a TOMU that sits flush with the USB port, and with functioning push buttons on the side. Then I could add 2 extra keys to my keyboard!