Or you could put all your movement code inside the Serial. available condition with an extra pair of {} braces.