Changed listeners to keylisteners in Input