Documentation for getting button data-code parameter was wrong