# Enable and Disable Text Input box

**URL:** <https://forum.kirupa.com/t/enable-and-disable-text-input-box/314653>\
**Category:** flash\
**Created:** [October 5, 2010, 2:58pm UTC](https://forum.kirupa.com/t/enable-and-disable-text-input-box/314653 "2010-10-05T14:58:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjory](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bjory](https://forum.kirupa.com/u/bjory)\
**Post date:** [October 5, 2010, 2:58pm UTC](https://forum.kirupa.com/t/enable-and-disable-text-input-box/314653/1 "2010-10-05T14:58:05Z")

</div>

Hi,

I’m doing a presentation flash and in my presentation, I don’t want to show my mouse movement.

I have a text input box for me to enter text. The text box property is set to dynamic.

I have create a keylistener for me to press “I” or “i” and when I press “I”, I want my text input box to enable me to type text in.

How can I code in AS to achieve this action?

Initial state of text input box is disabled, when I press “I” or “i” text input enabled and I can type in text. After that, I press another key, will disable the typing of text again.

Any assistance would be appreciated!
