The keys don’t work on the doors - they just unlock the buttons to call the elevator, or the buttons within the elevator. Once you get the keys, use the elevator to get around.
The attic key was back in the previous apartments, the Garden Tower Flat (I think that was the name). It provided a short cut getting from that apartment to the hallway with a guard.