Thanks, will try that! Managed to solve the problem with MozRepl::RemoteObject, following Corion's advice and the hint given in the module's documentation:
$i->__event('focus'); # $i = the input I am working with
$i->{value}='xyz';
$i->__event('blur');