Can you take to get out of checkmate?
This is checkmate. The king is checked, and there is no legal way to escape check. Even if the king moved next to the opponent's king, it would be in check from the king. So the game is won for the player giving check.