start applescript to build project.

Key code is keyboard key id. keystroke also worked.