# Getting user keyboard input -a beginner question

**URL:** <https://forum.kirupa.com/t/getting-user-keyboard-input-a-beginner-question/311055>\
**Category:** Uncategorized\
**Created:** [June 26, 2010, 10:34am UTC](https://forum.kirupa.com/t/getting-user-keyboard-input-a-beginner-question/311055 "2010-06-26T10:34:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvester](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sylvester](https://forum.kirupa.com/u/sylvester)\
**Post date:** [June 26, 2010, 10:34am UTC](https://forum.kirupa.com/t/getting-user-keyboard-input-a-beginner-question/311055/1 "2010-06-26T10:34:14Z")

</div>

hi,  
i’m new to as3, and to this forum as well…😏

i created a movieclip which contain one word at each frame, and i want the user to click for a button (“u” in this case), then a random frame is selected and the word should appear.  
i’m trying to create a keyboard event,but it seems that though an object is created, it can’t capture the event. maybe i miss something fundmental regarding creating events? i attach the fla and the as files.

and another question - how to create an event that will take place for a limited number of times (i.e the user can activate the movieclip by pressing “u” just five times).

thanks 😏
