added key listener to frame... etc

key listener, changed the thread to make it run while running, and such