Updated onKeyClick event handler.