No, Vaseline is not an ideal choice for re-lubing keyboard switches. Petroleum jelly is used to make Vaseline and can damage the components. More dangerously, it can make the keys sticky instead of smoother.