suppressed some cast warnings in the keyboard and the mouse