Implemented onKeyDown functionality for EntityGroup