Analog keyboard with r/2r, strange results

I have designed a 5-key’s board that uses one analog input.
But it gives me strange results. Both left and right give the same value as do up and down.
Maybe i am thinking wrong but maybe a fresh view will help.

Thanks, Harry

Why do you need R1-2-3-4-5?
I would think just connect like this, and output is just a voltage divider pick off, same as a potentiometeter but with fixed steps.

I wanted to use also combinations of switches. So Up and Left and so on