AFRAME - set max velocity for player

How would I set a speed cap/velocity cap on the player so that the player cannot go faster than that speed?