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