EEPROM to store char

Hello,

I see that using EEPROM.write(addr, val); can store a int value, but is there a way to store a char?. Im trying to store the last pressed keypad value so that if the arduino is power cycled it will pick up with the last button that was pressed when it turns back on.

Thanks,

EEPROM.write(addr, (char)val);

I see that using EEPROM.write(addr, val); can store a int value,

No it stores a single byte not an int which is two bytes.