How to disable player from changing direction when clicking buttons W,A,S,D

Hello!
I am making a space ship, which is controlled by W,A,S,D keys. The issue is that when im trying to decelerate using S, the entire thing turns back and behaves weirdly. I am not asking for entire scripts. Thanks for help!

1 Like