You can buy cheap USB keyboards for under $10. You could use that to get logged in. To fix the problems with the laptop keyboard, use Post-it notes to slide under the keys and clean out as much crud as you can, then use compressed air.
`
Good luck.