Add keydown listener to commit changes on <enter>