Intermittent skip of Switch case (jumping to limbo?)

Too many words - can we have a schematic please?

Have you debounced the switch inputs (if necessary?)

Are your grounds connected properly?