added duration, key action and repeat count for complex actions