Don’t use 0 as the null key code since it’s actually kVK_ANSI_A.