Repeating keys logic copied from https://github.com/oskarkv/JME3-JFX/blob/8ce3419ab9249935e5f7e89695a26602b75e736c/src/main/java/com/jme3x/jfx/JmeFXInputListener.java