Updated textPropertyKeyListener to static class