Troubles modifying speed attribute when player is holding shift

Yes that helps me alot can this work in a way? Look at this topic