Is there a way to detect both mouse, keyboard events in the same java class? Is there a way to detect both mouse, keyboard events in the same java class?