A java swing application that implements mouse, key, and window listeners