code: private void addDeviceMouse()
      {
          final MouseAwt mouse = new MouseAwt();
          addMouseListener(mouse);
          devices.put(Mouse.class, mouse);
          devices.put(InputDevicePointer.class, mouse);
      }
docs: Add a keyboard device.