Java tutorial
//package com.java2s; import javax.swing.*; import java.awt.event.InputEvent; public class Main { public static KeyStroke getCtrlShiftKeyStroke(final int vkC) { return KeyStroke.getKeyStroke(vkC, InputEvent.SHIFT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK); } public static KeyStroke getKeyStroke(final int keyCode) { return KeyStroke.getKeyStroke(keyCode, 0); } }