# Multiple keys pressed simulataneously

**URL:** <https://forum.kirupa.com/t/multiple-keys-pressed-simulataneously/166114>\
**Category:** Uncategorized\
**Created:** [October 17, 2005, 7:01am UTC](https://forum.kirupa.com/t/multiple-keys-pressed-simulataneously/166114 "2005-10-17T07:01:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thybalt](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@thybalt](https://forum.kirupa.com/u/thybalt)\
**Post date:** [October 17, 2005, 7:01am UTC](https://forum.kirupa.com/t/multiple-keys-pressed-simulataneously/166114/1 "2005-10-17T07:01:36Z")

</div>

Hi all,

I’m making this game which someone requires the user to simultaneously press a random combination of arrow keys (UP, DOWN, LEFT, RIGHT). At some point he will have to let go of certain keys whilst keeping the rest pressed down.

For example…

1. UP and RIGHT are both held down simulataneously…  
then
2. Either UP or RIGHT is released.

I’m using Key.addListener to detect key releases but it doesn’t let me know WHICH key (UP or RIGHT) was released.

Anyone has any idea? ;( :hoser:
