Added type to triggers for 'up' and 'down'. Meaning onkeyup and onkeydown. Default is 'up'