Let's face it - if someone breaks into your house and demands keys/code/whatever with menaces at 3am, you are likely to be in almost no position to defend yourself with any sort of effectiveness.
It isn't going to be like in a film where the wife wakes up and whispers "Darling, I hear something!", giving the husband time to slip on a robe and look for a suitable weapon to take on the intruders; they are going to be in your house, up the stairs and in your face in probably under 10 seconds from you hearing an initial disturbance (assuming you even hear one)
They are going to be wide awake, prepared, almost certainly experienced, and almost certainly outnumbering you. Even if there are only 2 of them, you are already at an enormous disadvantage and likely to be quickly overwhelmed unless you are John Wick or something.