# Keyboard Input Question

**URL:** <https://forum.kirupa.com/t/keyboard-input-question/184558>\
**Category:** flash\
**Created:** [April 5, 2006, 9:52pm UTC](https://forum.kirupa.com/t/keyboard-input-question/184558 "2006-04-05T21:52:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ender6](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@ender6](https://forum.kirupa.com/u/ender6)\
**Post date:** [April 5, 2006, 9:52pm UTC](https://forum.kirupa.com/t/keyboard-input-question/184558/1 "2006-04-05T21:52:39Z")

</div>

Hi all

So I’d like to get my SWF to respond to the user when they just type a word. For example, when they type “hello” , my SWF does some action.

Most of the stuff I’ve seen is entering text into a text field and then pressing the Enter key or clicking a button.

What I’d like is to type a secret code word and then some easter egg happens. No button clicks, etc. I thought maybe a key listener but that’s only one key, how do I get it to work with a whole word?

Thanks in advance.
