# How to keep storing value from a input text box until timer goes off?

**URL:** https://forum.kirupa.com/t/how-to-keep-storing-value-from-a-input-text-box-until-timer-goes-off/190932
**Category:** flash
**Created:** [June 15, 2006, 8:11pm UTC](https://forum.kirupa.com/t/how-to-keep-storing-value-from-a-input-text-box-until-timer-goes-off/190932 "2006-06-15T20:11:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![firefly](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@firefly](https://forum.kirupa.com/u/firefly)
#### Post date: [June 15, 2006, 8:11pm UTC](https://forum.kirupa.com/t/how-to-keep-storing-value-from-a-input-text-box-until-timer-goes-off/190932/1 "2006-06-15T20:11:35Z")

</div>

I’m trying to build a game where user will enter words in a single input text box for like 1 min.  
After each word the user will hit enter . On enter event the word would be stored be in an array & erase the contents of input text box ready for another word & keep doing it for certain time limit.  
I’m having problem in how to define that event that when user hit enters store the word & erase the text box. Any idea?
