workaround for detecting key / input events