How to do Rotate/Turn left right movement ?

Hi guys , i want to to create a turn left right movement by pressing the W+D key / W+E key, how can i do it ?