Arduino multiple pushbuttons read

Here is my Proteus simulation of same case, using logical gates