Note that nothing would happen if the player is somehow moving at a positive speed (and not sneaking).