Fix error when plug/unplug 2 keyboards