






function Main_AI.onKeyboardKeyDown(kKeyCode)






if(kKeyCode==input.kKeyLeft)then
this.sendStateChange("state_turn_left")
this.sendStateChange("state_stop")
elseif(kKeyCode==input.kKeyRight)then
this.sendStateChange("state_turn_right")
this.sendStateChange("state_stop")
elseif(kKeyCode==input.kKeyUp)then
this.sendStateChange("state_go_ahead")
this.sendStateChange("state_stop")
elseif(kKeyCode==input.kKeyDown)then
this.sendStateChange("state_come_back")
this.sendStateChange("state_stop")
elseif(kKeyCode==input.kKeySpace)then
this.sendStateChange("state_stop")
end

end
