If you skip a routine using Routine Settings, code in Begin Routine and End Routine (but not Each Frame) tabs will still be processed. You should therefore also use your “skip if” variable or expression to skip any code which you don’t want to be run.
This behaviour is the same locally and online, though I notice that a keyboard response in a skipped routine appears in the daya file as None locally and blank online.