Can you make every time I click the input the cursor moves to the end of it?
Notice that in this image it is before 1 and wanted every time you click on the input it goes to the end.
Yes, the simplest way, half "brute force" is to rewrite the input value with itself. This forces the cursor to go to the end.
Try moving the cursor with the arrows and then clicking it.
var input = document.querySelector('input');
input.addEventListener('click', function() {
this.value = this.value;
});
<input type="text" value="algo para testar" />
Another alternative, with Javascript:
<input onfocus="this.selectionStart = this.selectionEnd = 500;" value="Olá texto">