key_idle is in milliseconds not in seconds!