# Keyboard detect if not focused?

**URL:** <https://discourse.processing.org/t/keyboard-detect-if-not-focused/41248>\
**Category:** Coding Questions\
**Created:** [March 12, 2023, 7:02pm UTC](https://discourse.processing.org/t/keyboard-detect-if-not-focused/41248 "2023-03-12T19:02:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aryszin](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Post date:** [March 12, 2023, 7:02pm UTC](https://discourse.processing.org/t/keyboard-detect-if-not-focused/41248/1 "2023-03-12T19:02:44Z")

</div>

Am i able to detect key input even if the window is not focused?

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [March 12, 2023, 7:34pm UTC](https://discourse.processing.org/t/keyboard-detect-if-not-focused/41248/2 "2023-03-12T19:34:54Z")

</div>

Hi

Some hints

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/5316/keyboard-events-and-non-selected-windows.html)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.
