folderNameEditText.setOnKeyListener((View v, int keyCode, KeyEvent event) -> {
// If the event is a key-down on the `enter` key, select the `PositiveButton` `Create`.
if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode == KeyEvent.KEYCODE_ENTER) && createButton.isEnabled()) { // The enter key was pressed and the create button is enabled.
folderNameEditText.setOnKeyListener((View v, int keyCode, KeyEvent event) -> {
// If the event is a key-down on the `enter` key, select the `PositiveButton` `Create`.
if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode == KeyEvent.KEYCODE_ENTER) && createButton.isEnabled()) { // The enter key was pressed and the create button is enabled.