working enter binding for middle input