# BLE keyboard events on Raspberry Pi

**URL:** <https://discourse.nodered.org/t/ble-keyboard-events-on-raspberry-pi/89556>\
**Category:** General\
**Tags:** function-node\
**Created:** [16 July 2024 22:07 UTC](https://discourse.nodered.org/t/ble-keyboard-events-on-raspberry-pi/89556 "2024-07-16T22:07:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helge](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/helge/32/92857_2.png) [@Helge](https://discourse.nodered.org/u/Helge)\
**Post date:** [16 July 2024 22:07 UTC](https://discourse.nodered.org/t/ble-keyboard-events-on-raspberry-pi/89556/1 "2024-07-16T22:07:28Z")

</div>

Hi there!  
I thought, that would be an easy one, but it turned out to be tricky instead.  
My project depends on a Bluetooth BLE keyboard connected to a Raspberry Pi Zero W 2 running the 64 bit arm version (released March 2024) of Raspbian.  
Actually, there are 8 BLE keyboards connected, that all have a single key each (buzzers).  
While it doesn't seem to be a problem to get events from USB HID keyboards, BLE HID keyboards are not recognized by rpi-keyboard. The window holding the focus will get key events but the keyboard node won't catch the key event.  
I don't need dedicated key-press and key-release events but simply the fact, that a key was pressed at all. Having the key code or character would be a nice add-on but is not necessarily required.  
Is there a node available, that would allow to catch BLE keyboard events?

Thanks in advance,  
Helge

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [17 July 2024 07:50 UTC](https://discourse.nodered.org/t/ble-keyboard-events-on-raspberry-pi/89556/2 "2024-07-17T07:50:39Z")

</div>

Indeed - the pi-keyboard node just looks for a single kbd device under /dev/input/by-path/ BLE devices probably attach themselves to some other path, a BLE node or HID node may be more appropriate.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 October 2024 07:50 UTC](https://discourse.nodered.org/t/ble-keyboard-events-on-raspberry-pi/89556/3 "2024-10-15T07:50:59Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
