detects keyboard and mouse events to add a classname to the <body> tag. Styles can vary for :focus depending on whether or not the classnames are present.