Add support for blur and focus events