# How to query key presses

**URL:** https://discourse.julialang.org/t/how-to-query-key-presses/38242
**Category:** General Usage
**Created:** [April 26, 2020, 3:22pm UTC](https://discourse.julialang.org/t/how-to-query-key-presses/38242 "2020-04-26T15:22:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)
#### Post date: [April 26, 2020, 3:22pm UTC](https://discourse.julialang.org/t/how-to-query-key-presses/38242/1 "2020-04-26T15:22:09Z")

</div>

Is there a library which is able to query if a key is currently being pressed or not?  
I guess this would usually be done using OS-specific calls.

The goal would be to detect multiple simultaneous key presses of a keyboard.

---

<div class="post-metadata">

### Author: ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)
#### Post date: [April 26, 2020, 4:51pm UTC](https://discourse.julialang.org/t/how-to-query-key-presses/38242/2 "2020-04-26T16:51:24Z")

</div>

I think this would be GUI specific, i.e. what UI library you are using. Or do you want this from the terminal?
