This phase II/III trial studies how well palbociclib works in treating cell cycle gene alteration positive patients with stage IV squamous cell lung cancer that has come back after previous treatment. This is a sub-study that includes all screened patients positive for cell cycle gene alterations which can cause tumor cells to grow more quickly. Palbociclib may slow cell cycle progression and may be able to shrink tumors.