My goal is to add a new text field every time the user hits the TAB key. Unfortunately it only adds one field and then stops.
$('input[type="text"]').keydown(function (e) {
    if(e.keyCode === 9) {
        var div = $('#fields');
        div.append('<br><input type="text">');
    }
});
The HTML...
<div id="fields">
    <input type="text" id="textbox1" autofocus>
</div>
 
    