How to fix diagonal movement?

I am making a game but diagonal movement of course is faster. Anyway to fix it? Comment below!