Linear Actuator run time

You have not answered the question.
Do you want several motors to be turning at once or are you happy for only one to run and nothing respond to any key press until it has finished running.

most examples shown are using a delay where as I want the actuator to run for a set time.

You start the motor running, you delay for 1 second, then you stop the motor.