If the command was issued from a keyboard device, the object finds a next object in the compound object, the next object being established by the type of keyboard command and other information such as the relative hierarchical and spatial positions of the current and next objects.