Reenabled KeyBoard input that fell victim to warning removal
compatibility to java6