more mouse and keyboard fixes for raspberrypi