added printlns to java key listener
merging with integration