method for Press enter key