The keyboard input may need a flush function to be sure that all thrusters are clear of other orders or are no longer executing old commands to prevent competing instructions.