# Node to detect keyboard input?

**URL:** <https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781>\
**Category:** General\
**Created:** [20 December 2020 02:01 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781 "2020-12-20T02:01:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 December 2020 02:01 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/1 "2020-12-20T02:01:15Z")

</div>

Yes, I have searched the library, but not really had any luck.

There are some nodes which claim to do it, but I think are way too old.

I am looking for a node which will see keys pressed on the keyboard and send the result out as a message identifying the key pressed.

(Ideally I want to see a specific - variable as needed - key. But that is easy to get around with a `switch` node downstream from the node if it doesn't internally allow that.)

---

<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:** [20 December 2020 08:23 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/2 "2020-12-20T08:23:05Z")

</div>

If you are using a Pi then the pi keyboard node should be there already. If not then maybe not.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 December 2020 08:39 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/3 "2020-12-20T08:39:48Z")

</div>

I am using a RasPi.

No `keyboard` node installed.

Is that a standard node?

---

<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:** [20 December 2020 08:48 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/4 "2020-12-20T08:48:45Z")

</div>

Yes it is part of the pi gpio node package we install with the install script

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 December 2020 08:52 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/5 "2020-12-20T08:52:07Z")

</div>

Strange.

So if I type `keyboard` in the palette search, I get no result.

I just searched the library and can't find it.

How would I install it?

`node-red-node-pi-gpiod`?

---

<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:** [20 December 2020 09:05 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/6 "2020-12-20T09:05:14Z")

</div>

No. Just. node-red-node-pi-gpio

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 December 2020 10:02 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/7 "2020-12-20T10:02:01Z")

</div>

Perhaps you said no when it asked if you want the pi specific nodes.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 December 2020 10:14 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/8 "2020-12-20T10:14:47Z")

</div>

Maybe. I have been known to make mistakes in the past - and will in the future too I guess.

---

<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:** [18 February 2021 10:14 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781/9 "2021-02-18T10:14:54Z")

</div>

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