How to verify whether the test was failed manually or not?

Hi,

Is there a command which I could call to ask if the test was manually failed using the KeywordUtil.markFailed() method?
Thank you in advance: