Input field as a custom layout

Can I define an input field as a custom layout?

For example, input type: USER instead of text or number.

If so, how do I do that?

Here are fairly readable and complete docs for INPUT. It’s an HTML feature.

If you need something else, you can write a function which is called on every keystroke and does your custom actions.