your code
evt.initKeyboardEvent('keypress', true, true, window, 0, 0, 0, 0, 0, 13);
Look at the fourth param, I guess it should be the trigger element. Here should be document.querySelector('#searchfield')
.
One hint: In casper evaluate, return a true in final, and then you will get null if there is any error in evaluate.
var result = this.evaluate(function(){ /*code is here*/ return true;})
check the result, if success