Is there a way to prevent switching layers when laying tracks in KiCAD?
You can enable this behavior by selecting the "High Contrast" display mode.  This will grey-out the non-selected layers and force interaction only with the active layer.