The magic numbers are from the buttonmappings. The hope is that this is temporary and users will be able to map their own keys soon.