I am a bit confused by your photo and the other comment.
Usually you installed female headers on the board and male pins on the controller.
Most keyboard designs also ask for the controller to be installed with the components facing down and not up like in your image.
So make sure to double check the correct direction for your keyboard before turning it on.
For the display you can use the same female headers and then just make the male pins that you solder to the display longer.
I recommend watching this stream of a lily58 keyboard build. It’s done by the creator of the nice nano.
https://youtu.be/kRrzfWv39G4
He shows how to properly solder controllers, sockets, diodes and so on. o