[Client] Improved naming dialog

Properly handle input commands in the input dialog.