How to STRING + Keyboard.ENTER

noob! how do I add an Enter keystroke to my input text string?

the following doesn’t work…



question.addEventListener(KeyboardEvent.KEY_UP, correctAnswer);

function correctAnswer(e:KeyboardEvent):void{
					
if (question.inputField.text == String("correct answer" + Keyboard.ENTER)) {
					trace ("correct!")
					}
				}

THANKS!