ignore modifier keys when enter is pressed. fixes #836