Add a keyboard event listener to the element (blur or focusout) which will trigger the same functionality as the mouse event.
Engine scans for elements using one of the following events: mouseleave or mouseout, but having no corresponding keyboard event (blur or focusout).
Using both keyboard-specific and mouse-specific events together ensures that content can be operated by a wide range of devices. For example, a script may perform the same action when focusout is detected that is performed when a mouse leaves an element.
<a href="menu.php" onmouseover="swapImageOn('menu')" onfocus="swapImageOn('menu')"
onmouseout="swapImageOff('menu')" onblur="swapImageOff('menu')">