Implement partial mouse position, button and keyboard handling.