Refactoring: Added static KeyEventsStack.getKeyGroup method.