Changed how instance variables are implemented for mouse and keyboard components