To get better at this you need to understand small parts and then put them together into something that works.
Gain some knowledge.
First look at drawing before this with Led.
What is the voltage at top of led ( D1 pin 2 ) with switch opened and closed?
What is logic Low voltage range for /WR pin of ram?
What is logic High voltage range for /WR pin of ram?
Now re-read the last part of Ian.M's post again.
Now dig into lan.M's post an you have some answers to last drawing.
Hint, logic is logic, output of switch is a logic output.
Now last drawing.
Question is "do you trust your switch and what happens if it has a poor connection?"
Look at what you want to happen at U4 pin B
If that connection from S1 pin C1 comes loose, what is at U4 pin B?
You have all the answers you need to answer your question from Ian.M's post.
Now go a step further and change how switch is connected.
Wire the switch with C1 connected to ground.
If you understand Ian.M's post, this is a small change.
Now what happens when connection to U4 pin B gets disconnected or switch fails?
Do not make it hard, take simple steps from first drawing to improversion of last drawing.
Start here in post
You cant wire the switch as you have drawn as the LED will prevent the level going low enough for a valid logic 0. Move the logic takeoff point to the LED cathode and a 4K7 resistor across the LED to fix it.
You should know answers to my above questions if you go step by step changing circuit as lan.M suggests.
Understanding now will save you time later.
Now continue reading lan.M's post.