Fix order of parameters in registerKeystrokeListener