How do I lock the rotation of an Actor rotated by a key press?

Ah okay thanks! Do you know if it determine swiping left or right already or do I have to declare all that myself?