First detect the mouse and then the keyboard as it was done in the old i8042prt driver.