# Getting accented typed chars from keys (like "é")

**URL:** https://discourse.processing.org/t/getting-accented-typed-chars-from-keys-like-e/43099
**Category:** Coding Questions
**Created:** [October 30, 2023, 3:51pm UTC](https://discourse.processing.org/t/getting-accented-typed-chars-from-keys-like-e/43099 "2023-10-30T15:51:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)
#### Post date: [October 30, 2023, 3:51pm UTC](https://discourse.processing.org/t/getting-accented-typed-chars-from-keys-like-e/43099/1 "2023-10-30T15:51:49Z")

</div>

I found this answer from @George on StackOverflow but it doesn’t work for me:

> <https://stackoverflow.com/questions/33249340/how-to-capture-diacritics-with-keypressed-in-processing/33468643#33468643>

I’m on Linux using a Portuguese Layout that uses “dead keys”(?) like “backtick” + `a` to make `à` or “acute” + `e` to make `é`.

Any tips?

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [October 30, 2023, 4:08pm UTC](https://discourse.processing.org/t/getting-accented-typed-chars-from-keys-like-e/43099/2 "2023-10-30T16:08:03Z")

</div>

> **[keyTyped() / Reference](https://processing.org/reference/keyTyped_.html)**
>
> The keyTyped() function is called once every time a key is pressed, but action keys such as Ctrl, Shift, and Alt are ignored. Because of how operating systems handle key repeats, ho…

---

<div class="post-metadata">

### Author: ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)
#### Post date: [October 30, 2023, 4:40pm UTC](https://discourse.processing.org/t/getting-accented-typed-chars-from-keys-like-e/43099/3 "2023-10-30T16:40:03Z")

</div>

Thank you so much, as usual @GoToLoop to the rescue!!!

 ![Screenshot_2023-10-30_13-37-58](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/5/8/58f02673ee18112ef7de259b3eeb61f12501858b.png)
