handle ENTER key, fixed docs