Code input field improvements