# General Keypresses

**URL:** <https://forum.kirupa.com/t/general-keypresses/195359>\
**Category:** flash\
**Created:** [July 31, 2006, 6:03am UTC](https://forum.kirupa.com/t/general-keypresses/195359 "2006-07-31T06:03:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woad](https://avatars.discourse-cdn.com/v4/letter/w/34f0e0/32.png) [@woad](https://forum.kirupa.com/u/woad)\
**Post date:** [July 31, 2006, 6:03am UTC](https://forum.kirupa.com/t/general-keypresses/195359/1 "2006-07-31T06:03:30Z")

</div>

What I mean by ‘General’ keypresses is that there is no specific target, and no specific key. What I’m trying to do is have a screen and you can just press any key or click your mouse and it will call a function that checks whether there is a shared object already being used or it must be created (although you don’t need to know that…).

I tried just

if(Key.isDown())

That doesn’t work whatsoever.

crap, this shoulda been in the AS section…
