added support for enter key