Naming device through keaboard input

Hi all,

I want to use a keyboard input to set a name variable for my device during setup.
Is there a possibility to do that or do i just hardcode the name?

In java you can do it like that:

Scanner scanner = new Scanner(System.in);
String name = scanner.next();

Thanks for your help

you can sure read stuff in (USB Keyboard, Membrane, Serial input, ...) as long as your arduino has someway to receive data and know what to do with that data.

How do you envision your system to work?