I think the smart battery module is playing culprit here. Because if I remove the module acpi_sbs, I don't see the bug of missing/repeating keystrokes. Try sudo rmmod acpi_sbs -- Keyboard random repeat https://launchpad.net/bugs/39315