I cooked up a solution assuming you’re using the standard template WASD setup; not likely the cleanest, but it works:
One function to set walk speeds - ‘WASDSets’
Four pure functions to evaluate which direction is double tapped - ‘WCheck’, etc.
Four variables to prevent multiple directions during double tap from working - ‘WCheckPass’, etc.
See video and pictures below.








