code: private void addDeviceKeyboard()
      {
          final KeyboardHeadless keyboard = new KeyboardHeadless();
          devices.put(Keyboard.class, keyboard);
          devices.put(InputDeviceDirectional.class, keyboard);
      }
docs: Add a keyboard device.