serin will stop the program until a key is pressed unless you add an optional time out

SERIN Pin, Mode,{Timeout, Label,}{[Qual...],}{Item...}

Why are you not using Hserin? I thought this issue had been solved, in another thread.