In need of some help - Modal text input with cancel

You could simply add a bit script so that when the input box loses focus, you simply set focus once more.

<script type="text/javascript">
    var element= document.getElementById('return_value');
    element.focus();
    element.onblur= function() {
        setTimeout(function() {
            element.focus();
        }, 0);
    };
</script>