# Key Events in Thunkable?

**URL:** <https://community.thunkable.com/t/key-events-in-thunkable/1762525>\
**Category:** Questions about Thunkable X\
**Created:** [March 2, 2022, 12:11am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525 "2022-03-02T00:11:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)\
**Post date:** [March 2, 2022, 12:11am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/1 "2022-03-02T00:11:02Z")

</div>

Hello.

How do you add a **key event** in _Thunkable_? Am trying to use the **enter** key but I don’t know the code… please resolve and comment below.

Thanks

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 2, 2022, 1:19am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/2 "2022-03-02T01:19:19Z")

</div>

There are no key events in Thunkable. I really wish there were.

@muneer has been helping me with javascript event handling to work with key presses. He might be able to share that code with you. I can also see if I have a demo that you can work from.

I don’t see key events as a feature request but you should definitely consider adding it!

> **[Bugs and Feature Requests](https://docs.thunkable.com/bugs-and-feature-requests)**

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 2, 2022, 1:56am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/3 "2022-03-02T01:56:19Z")

</div>

Like, for web apps? When would this come in handy?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 2, 2022, 2:32am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/4 "2022-03-02T02:32:08Z")

</div>

Yes, web apps. Wordle, for example. Or games with arrow key movement.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 2, 2022, 3:52am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/5 "2022-03-02T03:52:11Z")

</div>

For `text input` components you can use the `submit` block which is basically the **enter key**.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 2, 2022, 5:23am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/6 "2022-03-02T05:23:34Z")

</div>

But Text Inputs have all sorts of problems from [not auto-focusing on screen load](https://github.com/thunkable/thunkable-issues/issues/1111) to… [not auto-focusing on additional Text Inputs on the screen](https://github.com/thunkable/thunkable-issues/issues/1098) to… [not registering additional clicks](https://github.com/thunkable/thunkable-issues/issues/1043).

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 2, 2022, 8:27am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/7 "2022-03-02T08:27:09Z")

</div>

> [@tatiang](#):
>
> have all sorts of problems

Yes, this is true and I add to the list that `text input` does not have a block to disable it. If such a block is available then may be you can disable the block to force the **focus** to the next `text input`.

In case there is any interest in **detecting key events** , this is my demo project.  
[https://x.thunkable.com/projectPage/60f8072c65863b0012f776a2](https://x.thunkable.com/projectPage/60f8072c65863b0012f776a2)

Again, due to no auto focus or auto execute of `Web Viewer` codes, you will need to click on the image first to start the `key listener`. The listener is returning the **key code** which is the physical location of the key instead of the ASCII value so you do not have to worry about upper case/lower case

---

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [March 2, 2022, 12:03pm UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/8 "2022-03-02T12:03:26Z")

</div>

I’ve made a pull request ([Add keyboard input · Issue #847 · thunkable/thunkable-issues · GitHub](https://github.com/thunkable/thunkable-issues/issues/847)) a long time ago.  
You can possibly contribute to the request to make it happen

---

<div class="post-metadata">

**Author:** ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)\
**Post date:** [March 5, 2022, 12:48am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/9 "2022-03-05T00:48:11Z")

</div>

Yeah, [Wordle](https://wordleunlimited.com) is a good one to use key events…

---

<div class="post-metadata">

**Author:** ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)\
**Post date:** [March 5, 2022, 12:52am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/10 "2022-03-05T00:52:21Z")

</div>

Yknow the [text input](https://docs.thunkable.com/text-input)? That uses **keyboard events**. TI could _probably_ help…?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 5, 2022, 4:00am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/11 "2022-03-05T04:00:18Z")

</div>

Please read the other comments in this topic. I mentioned several problems with text inputs.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [June 3, 2022, 4:00am UTC](https://community.thunkable.com/t/key-events-in-thunkable/1762525/12 "2022-06-03T04:00:59Z")

</div>

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