Make arrow keys use commit_edit() properly