Added key event cases for left, right, up, down