# Direct keyboard input in the flow

**URL:** https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839
**Category:** General
**Created:** [2 December 2025 01:36 UTC](https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839 "2025-12-02T01:36:06Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sudomac](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@sudomac](https://discourse.nodered.org/u/sudomac)
#### Post date: [2 December 2025 01:36 UTC](https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839/1 "2025-12-02T01:36:06Z")

</div>

I am working on a home automation system using node red as a server (nothing new). I am working on various types of client device command codes, e.g. "AU, or BF, simple string codes. I was wondering if there was a way to directly type a simple string, and it run through the system to make sure communication works. I have literally hundreds of predefined codes. if i have to edit an inject node, every time I need to change the command code, I will be here for days. I could just throw a UI node in and go that route but then I'm switching between UI and flow constantly. It would be much easier if there were a keyboard input node, that one could select, put in a command code or string, and when you hit enter it dumps the payload. Anyone know of something similar?

---

<div class="post-metadata">

### Author: ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)
#### Post date: [2 December 2025 02:22 UTC](https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839/2 "2025-12-02T02:22:10Z")

</div>

you could use Inject now feature ?

![inject](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2bbc40292761e55316da47d9c46ebeb808a834db.gif)

---

<div class="post-metadata">

### Author: ![omrid](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@omrid](https://discourse.nodered.org/u/omrid)
#### Post date: [2 December 2025 12:28 UTC](https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839/3 "2025-12-02T12:28:56Z")

</div>

as mentioned above by @smanjunath211, you can type input dynamically via 'Inject now'.  
Alternatively, you can setup a quick dashboard with various types of input nodes - text, drop-list etc.

---

<div class="post-metadata">

### Author: ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)
#### Post date: [2 December 2025 14:08 UTC](https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839/4 "2025-12-02T14:08:33Z")

</div>

> [@omrid](#):
>
> you can setup a quick dashboard with various types of input nodes

> [@sudomac](#):
>
> I could just throw a UI node in and go that route but then I'm switching between UI and flow constantly

OP has already considered it, and not in favor of.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [2 December 2025 16:15 UTC](https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839/5 "2025-12-02T16:15:59Z")

</div>

Add all the commands to a template node in list or csv.  
Then split the list and rate limit the output.  
You can then use an inject to flush individual commands  
e.g.

```auto
[{"id":"70aa1ff22dec91ce","type":"inject","z":"613df62afc8a16bf","name":"initialise list","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":60,"wires":[["a5969cf6278658a1"]]},{"id":"a5969cf6278658a1","type":"template","z":"613df62afc8a16bf","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"ab\ncd\nef\ngh\nij","output":"str","x":300,"y":60,"wires":[["bd5c2c98ae2d4a2f"]]},{"id":"bd5c2c98ae2d4a2f","type":"split","z":"613df62afc8a16bf","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":450,"y":60,"wires":[["21073e53ef1d1394"]]},{"id":"21073e53ef1d1394","type":"delay","z":"613df62afc8a16bf","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"60","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":420,"y":100,"wires":[["3bd36f9325ef1830"]]},{"id":"f7e5749a5d722a3c","type":"inject","z":"613df62afc8a16bf","name":"clear list","props":[{"p":"reset","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":140,"y":100,"wires":[["21073e53ef1d1394"]]},{"id":"f74705bb3d6f3388","type":"inject","z":"613df62afc8a16bf","name":"next","props":[{"p":"flush","v":"1","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":110,"y":180,"wires":[["21073e53ef1d1394"]]},{"id":"3bd36f9325ef1830","type":"debug","z":"613df62afc8a16bf","name":"debug 2588","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":610,"y":100,"wires":[]}]

```

---

<div class="post-metadata">

### Author: ![sudomac](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@sudomac](https://discourse.nodered.org/u/sudomac)
#### Post date: [3 December 2025 00:55 UTC](https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839/6 "2025-12-03T00:55:12Z")

</div>

How on earth did I not see that! They really Blended it in nicely didn't they! Thank you all for reminding me that I need bifocals now. : )

---

<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: [17 December 2025 00:56 UTC](https://discourse.nodered.org/t/direct-keyboard-input-in-the-flow/99839/7 "2025-12-17T00:56:10Z")

</div>

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