Using IR remote to change car mode

What version of the IRremote library do you have installed? The posted code is written for an older version of the library and may not work properly with the newest version of the library.