Phaser API Documentation

  Version: 
duration: number

Description:

The number of milliseconds this key was held down for in the previous down - up sequence. This value isn't updated every game step, only when the Key changes state. To get the current duration use the getDuration method.

Type:
number
Default: 0
Since: 3.0.0