use key input

instead of documentlistener, used keylistener to fix lag. uses "enter"
to get results now