Sometimes, if you tip it upaside down and put it on your shoulder then pat its back as though you were burping a baby. Any dust, durt or toast crumbs will fall out and the keyboard might work properly.
If the affected keys were in adjacent blocks I'd say hardware but your's are spread out so it's a bit of a mystery.