KeySequence [] sequences = action.getKeySequences();
if (sequences != null)
{
for (int is = 0; is < sequences.length; ++is)
{
KeySequence sequence = sequences [is];
if (sequence.length() == 1)
{
String actionId = "OE" + i;
// Register the action id for the provided key code
KeyStroke ks = sequence.getKeyAt(0);
focusInputMap.put(ks, actionId);
focusAncestorInputMap.put(ks, actionId);
// Determine the command
actionMap.put(actionId, action);