handled compatibility between mouse and keyboard