Please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
An opto-coupler is simply a photo-diode on the input side and a phototransistor on the output. Assuming you are using 5V supply I would typically use 1K current limiting resistor on the input side and the port internal pullup on the output side, although 10K would not do any harm. It would interesting to know the application, as noise can often be overcome in software.
Crosstalk is not normally a problem with buttons if there are bias resistors (or better the internal pullup resistors are active) and the connecting wires are not too long. Using an optocoupler here is an unusual solution to whatever the problem is in this case.
Thank you everyone for all of your comments, especially @J-M-L for the little schematic that helps a lot!
I have discovered, since my early experiments with buttons, that I can set multiple up on an analog pin so I am going to try that, at some point, I got distracted by the LCD and BME280 and TSL2561 part of the project