# Text input return Key action

**URL:** https://community.thunkable.com/t/text-input-return-key-action/1364201
**Category:** Questions about Thunkable X
**Created:** [June 25, 2021, 4:20pm UTC](https://community.thunkable.com/t/text-input-return-key-action/1364201 "2021-06-25T16:20:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sjalari248eymm](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sjalari248eymm](https://community.thunkable.com/u/sjalari248eymm)
#### Post date: [June 25, 2021, 4:20pm UTC](https://community.thunkable.com/t/text-input-return-key-action/1364201/1 "2021-06-25T16:20:09Z")

</div>

I want my UI/UX to be convenient for my users, so I want to make it so that the text input return key is linked to a button so when it is pressed, it is like the button is also being pressed, and the code in that button click is executed. Or I want to make it so that the text input return key can do an action instead of only dismissing the keyboard or adding a line. Is there a way to do any of these two? Anybody’s help would be highly appreciated. Thanks in advance. 🙂

---

<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: [June 25, 2021, 6:00pm UTC](https://community.thunkable.com/t/text-input-return-key-action/1364201/2 "2021-06-25T18:00:38Z")

</div>

Yes Use the submit or unfocus event and a function.  
Create a function with your code.  
And put it onClick, Submit or unfocus

---

<div class="post-metadata">

### Author: ![sjalari248eymm](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sjalari248eymm](https://community.thunkable.com/u/sjalari248eymm)
#### Post date: [June 25, 2021, 7:05pm UTC](https://community.thunkable.com/t/text-input-return-key-action/1364201/3 "2021-06-25T19:05:39Z")

</div>

Okay, thanks but how Do I put it under Click, Submit or unfocus?

---

<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: [June 26, 2021, 5:01am UTC](https://community.thunkable.com/t/text-input-return-key-action/1364201/4 "2021-06-26T05:01:38Z")

</div>

Use the `Submit` event.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:20pm UTC](https://community.thunkable.com/t/text-input-return-key-action/1364201/5 "2024-11-08T13:20:05Z")

</div>


