Issue #2996404 by andrewmacpherson, Krzysztof Domański: Replace old keypress workaround in AjaxFormImageButtonTest