Java tutorial
//package com.java2s; import java.awt.event.InputEvent; public class Main { /** Return true if the Control button was held when 'e' was generated. */ public static boolean controlPressed(InputEvent e) { return (e.getModifiersEx() & InputEvent.CTRL_DOWN_MASK) != 0; } }