on keypress function

on keypress function

i am creting add delete row. when press enter from keyboard in name input it will add row.
i am using this script :

        //disable submit using enter
        $(document).keypress(function(evt) {
        //Deterime where our character code is coming from within the event
        var charCode = evt.charCode || evt.keyCode;
        if (evt.keyCode  == 13) { //Enter key's keycode
        return false;
        }
        });

        <input type="text" name="name" id="name">


the problem is whern i'm typing in input name the row is appended

anyone can help me please??thx