Transform Gizmo not working

hey my transform gizmo is acting weird, when i press spacebar it turns the gizmo off and on instead of toggling between rotate, scale, and move. Does anyone know whats going on?