Real quick heads up, a learn from my fail moment -
I recently used keyEvent and handled some keyboard shortcuts by using (event.getChar() == “z”) for example.
As I have just found out the hard way, users in different locations to myself (e.g, Russia) were experiencing incorrect behaviour, where ctrl+z was resulting in ctrl+o.
I have been able to reproduce this on my machine - by changing my keyboard layout in Windows > Region & Language > Keyboards and Languages > Add keyboard > Russian - and found that you should always use event.getCode() - this stays the same no matter what the character is.
I know this might seem incredibly obvious, and reading back my words it just looks obvious now, but just posting in case this helps anyone else!