Digital pins do not work as a INPUT pins

Just to be pedantic @groundFungus, could you H-flip your diagram so action flows from left to right ?
Maybe you can add the LED shown left-to-right as well ?