I sould have said the schematic shows to have LED and switch on a separate pin.
However, if the OP needs both on the same pin, see this link:
https://forum.arduino.cc/index.php?topic=439838.0
Also covered here:
Post #334
https://forum.arduino.cc/index.php?topic=445951.msg3336467#msg3336467
And #391:
https://forum.arduino.cc/index.php?topic=445951.msg3430326#msg3430326