handle keyboard interactions at the beginning (when no box is selected)