Handle left and right keys