Looking for help locking character movement to a retro 8 direction setup

This is great, you’ve really helped me out here and I greatly appreciate it!