InputEvent.getModifiers() was deprecated with JDK9 in favor of getModifiersEx(). However, with the latter, it seems impossible to detect which butt
InputEvent.getModifiers()
getModifiersEx()