if(key == 0x1A){do stuff}
They're just a different way to write numbers -- they're exactly the same thing underneath.