# Help with key timings!

**URL:** <https://forum.kirupa.com/t/help-with-key-timings/275880>\
**Category:** flash\
**Created:** [November 19, 2008, 6:31pm UTC](https://forum.kirupa.com/t/help-with-key-timings/275880 "2008-11-19T18:31:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxSan](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@MaxSan](https://forum.kirupa.com/u/MaxSan)\
**Post date:** [November 19, 2008, 6:31pm UTC](https://forum.kirupa.com/t/help-with-key-timings/275880/1 "2008-11-19T18:31:36Z")

</div>

Hi everyone xD just thought id say that first… im new… il probably be hanging around here a fair bit xP

Trying to get the time between pressing the space bar and letting it go… so far ive got something like this…

```auto
keyListener.SPACE.onKeyDown = function() { 
   startCount = newTime.getTime()  
  keyListener.onKeyUp = function() {
   stealTime = newTime.getMilliseconds() –= startCount
  } 

```

doesnt quite work (bad syntax i know) think im on the rite method just need someone tidy it or let me know how i can fix… be much appreciated xD

Oh also… i cant type in this box in the firefox browser? any ideas why? oO

Thanks again!
