title: Windows key + right/left arrow keys doesn't work on undecorated frame in swing
body: <p>I have an undecorated ( <strong>setUndecorated(true)</strong> ) frame which doesn't behave properly when pressing windows key + right/left arrow keys.</p>
  
  <p>Please refer the sample code bellow :</p>
  
  <pre><code>import javax.swing.*;
  import java.awt.*;
  
  public class TestGUI {
  
      private static void createAndShowGUI() {
          JFrame frame = new JFrame("HelloWorldSwing") {
              @Override
              public boolean isUndecorated() {
                  return super.isUndecorated();
              }
          };
          frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  
          JLabel label = new JLabel("Hello World");
          frame.getContentPane().add(label);
          frame.setPreferredSize(new Dimension(400, 400));
          frame.setUndecorated(true);
  
          frame.pack();
          frame.setVisible(true);
      }
  
      public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
              public void run() {
                  createAndShowGUI();
              }
          });
      }
  
  }
  </code></pre>
  
  <p>But when I set the frame as <strong>setUndecorated(false)</strong>, then it works properly. I couldn't find any java bug related to this issue. Is there a work around which I could use to get the same behavior with <strong>setUndecorated(true)</strong>?</p>