I have tried multiple ways to rotate using e and q but every one seems to be wonky some times you will have to press the button a few time other times it goes and turned back then other times it rotates fine.
I can't speak to what's going wrong with your graph but I do have a suggestion. You may want to change the way you do this. Instead of attaching the rotation directly to the events, you should set some Booleans to true and/or false on press/release. Then on update you do the actual rotation if those booleans are set to true.