# Simultaneous key presses

**URL:** https://discourse.vtk.org/t/simultaneous-key-presses/13637
**Category:** Development
**Created:** [March 27, 2024, 12:09am UTC](https://discourse.vtk.org/t/simultaneous-key-presses/13637 "2024-03-27T00:09:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![eyalweisz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/eyalweisz/32/8651_2.png) [@eyalweisz](https://discourse.vtk.org/u/eyalweisz)
#### Post date: [March 27, 2024, 12:09am UTC](https://discourse.vtk.org/t/simultaneous-key-presses/13637/1 "2024-03-27T00:09:29Z")

</div>

I created a custom interactor style that handles key presses.  
But it seems that it handles only one key press at a time.  
According to chatGPT, this is how VTK works.  
Is there a way to enable simultaneous key presses?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [March 27, 2024, 10:53am UTC](https://discourse.vtk.org/t/simultaneous-key-presses/13637/2 "2024-03-27T10:53:22Z")

</div>

> [@eyalweisz](#):
>
> But it seems that it handles only one key press at a time.

Indeed, but you can recover modifiers states if needed

> According to chatGPT, this is how VTK works.

According to the documentation in this example, this is how VTK works:  
[https://examples.vtk.org/site/Cxx/Interaction/KeypressEvents/](https://examples.vtk.org/site/Cxx/Interaction/KeypressEvents/)
