Add shared build scheme
Fix virtual key codes on OS X