If you're working with actual LS TTL, this is not a nice solution.
Noise immunity will be greatly reduced, especially at digital low level.
If you check e.g. the 74LS00 datasheet (
http://www.ti.com/lit/ds/symlink/sn5400.pdf, page 5), you can see that the input current at low, IIL is in the order of 400µA.
Across 2kohm resistor that makes 800mV.
Guaranteed output low VOL is 0.4V, plus the drop across R: 0.4V + 0.8V = 1.2V.
Guaranteed maximum input voltage for low is 0.8V < 1.2V...doesn't look good.
For high level, it should work (IIH = 20µA -> 40mV drop).
The correct way to do it should be to use a couple of spare gates (NORs or NANDs), with one input connected to the switch, see the (horribly crude) drawing attached; for the NOR case, the switch should go on the first gate, and its action would be reversed.
Of course if you have a spare OR you need a single gate!
This will introduce a delay of about 16ns, that can or cannot be tolerable in your design (if you need to keep the track short, there might be a reason...). Not that resistors in the path would not affect dynamic characteristics, though.