Added KeyEvent to check code

Ignores hint if last press was enter.