# Is there a way to detect 2 key presses at once?

**URL:** <https://forum.kirupa.com/t/is-there-a-way-to-detect-2-key-presses-at-once/290768>\
**Category:** flash\
**Created:** [June 19, 2009, 10:58am UTC](https://forum.kirupa.com/t/is-there-a-way-to-detect-2-key-presses-at-once/290768 "2009-06-19T10:58:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bear](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@bear](https://forum.kirupa.com/u/bear)\
**Post date:** [June 19, 2009, 10:58am UTC](https://forum.kirupa.com/t/is-there-a-way-to-detect-2-key-presses-at-once/290768/1 "2009-06-19T10:58:51Z")

</div>

Hey guys,

When I say two keyboard presses, I’m thinking about a situation where I would need to detect both. Not a shift this or alt that or control third. I’m talking about \*\*Down + A \*\*or **5 + T.** For instance: Ryu has an overhead attack that is used when both Down + MP are pressed. If I were to create a game, with ActionScript 3.0, is there a way for me to detect that both buttons were pressed at the same time?
