How to disable the "W" key using a bool?

If (can Move) don’t process ‘W’ input, else allow movement